RuudVelo commited on
Commit
ed6dd13
1 Parent(s): dede7cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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,title="Probability of article category" )
 
 
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)