jaifar530 commited on
Commit
aa1df65
·
unverified ·
1 Parent(s): 24ff7ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -116,10 +116,12 @@ if press_me_button:
116
 
117
  st.write(f"The text is most likely written by: {predicted_author}")
118
  st.write("Probabilities for each author are (sorted):")
 
 
 
119
  for author, prob in sorted_probabilities:
120
  st.write(f"{author}: {prob * 100:.2f}%")
121
-
122
- import streamlit as st
123
 
124
 
125
 
 
116
 
117
  st.write(f"The text is most likely written by: {predicted_author}")
118
  st.write("Probabilities for each author are (sorted):")
119
+ # for author, prob in sorted_probabilities:
120
+ # st.write(f"{author}: {prob * 100:.2f}%")
121
+
122
  for author, prob in sorted_probabilities:
123
  st.write(f"{author}: {prob * 100:.2f}%")
124
+ st.progress(prob)
 
125
 
126
 
127