Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,9 @@ if st.button('Submit'):
|
|
66 |
'Opmerkelijk' ,'Politiek', 'Regionaal nieuws', 'Tech']
|
67 |
probs_plot = probabilities[0].cpu().detach().numpy()
|
68 |
|
69 |
-
ax.barh(labels_plot,probs_plot
|
|
|
|
|
70 |
st.pyplot(fig)
|
71 |
# output = genQuestion(option, input)
|
72 |
# print(output)
|
|
|
66 |
'Opmerkelijk' ,'Politiek', 'Regionaal nieuws', 'Tech']
|
67 |
probs_plot = probabilities[0].cpu().detach().numpy()
|
68 |
|
69 |
+
ax.barh(labels_plot,probs_plot)
|
70 |
+
ax.set_xlabel("Predicted category")
|
71 |
+
ax.set_ylabel("Probability")
|
72 |
st.pyplot(fig)
|
73 |
# output = genQuestion(option, input)
|
74 |
# print(output)
|