digitalWestie commited on
Commit
8c2373f
·
1 Parent(s): eb909ed
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ if (submit and len(text.strip()) > 0) or len(text.strip()) > 0:
34
  prediction = sort_predictions(prediction)
35
  max_ylim = prediction[0]['score'] + 0.1
36
  fig, ax = plt.subplots()
37
- ax.barh([p['label'] for p in prediction], [p['sore'] for p in prediction])
38
  #ax.tick_params(rotation=0)
39
  ax.set_xlim(0, max_ylim)
40
  st.header('Result:')
 
34
  prediction = sort_predictions(prediction)
35
  max_ylim = prediction[0]['score'] + 0.1
36
  fig, ax = plt.subplots()
37
+ ax.barh([p['label'] for p in prediction], [p['score'] for p in prediction])
38
  #ax.tick_params(rotation=0)
39
  ax.set_xlim(0, max_ylim)
40
  st.header('Result:')