Spaces:
Runtime error
Runtime error
Commit
·
8c2373f
1
Parent(s):
eb909ed
fix
Browse files
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['
|
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:')
|