Spaces:
Sleeping
Sleeping
jaifar530
commited on
Update app.py
Browse files
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 |
|