Spaces:
Running
Running
app fixes_v2
Browse files
app.py
CHANGED
@@ -137,8 +137,12 @@ def main():
|
|
137 |
themes = get_themes(probabilities, label_to_theme)
|
138 |
|
139 |
st.success("Classification results:")
|
|
|
|
|
|
|
140 |
for theme, prob in themes:
|
141 |
-
st.
|
|
|
142 |
|
143 |
|
144 |
if __name__ == "__main__":
|
|
|
137 |
themes = get_themes(probabilities, label_to_theme)
|
138 |
|
139 |
st.success("Classification results:")
|
140 |
+
# for theme, prob in themes:
|
141 |
+
# st.write(f"- {theme}: {prob:.2%}")
|
142 |
+
|
143 |
for theme, prob in themes:
|
144 |
+
with st.expander(f"{theme} ({prob:.1%})"):
|
145 |
+
st.markdown(f"**Description**: ")
|
146 |
|
147 |
|
148 |
if __name__ == "__main__":
|