digitalWestie commited on
Commit
60929e9
1 Parent(s): 8c2373f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ with st.spinner("Loading model..."):
31
 
32
  if (submit and len(text.strip()) > 0) or len(text.strip()) > 0:
33
  prediction = pipe(text)[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['score'] for p in prediction])
 
31
 
32
  if (submit and len(text.strip()) > 0) or len(text.strip()) > 0:
33
  prediction = pipe(text)[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['score'] for p in prediction])