Make a bet to change the color of the chart bar

Hello friends
I’m looking for a way to bet on changing the color of the chart bar

I want the color of the bar in the chart to be red for me when my number is less than zero
And when the color of the bar in the chart becomes larger than zero, it turns green

            df = pd.DataFrame(exam_data)
            source = df

            fig = px.bar(source, x='Score', y='Parameter')
            fig