shivansh-ka commited on
Commit
b29791f
·
1 Parent(s): 4dbcfd6

Update src/predict.py

Browse files
Files changed (1) hide show
  1. src/predict.py +1 -1
src/predict.py CHANGED
@@ -29,7 +29,7 @@ class PredictionServices:
29
  def plot(self, pred):
30
  probs = [round(pred*100,2), round(1-pred*100,2)]
31
  labels = ['toxic', 'non-toxic']
32
- color_map - {'toxic':"red", "non-toxic":"green"}
33
  fig = px.bar(x=probs,
34
  y=labels,
35
  width=500, height=250,
 
29
  def plot(self, pred):
30
  probs = [round(pred*100,2), round(1-pred*100,2)]
31
  labels = ['toxic', 'non-toxic']
32
+ color_map = {'toxic':"red", "non-toxic":"green"}
33
  fig = px.bar(x=probs,
34
  y=labels,
35
  width=500, height=250,