bvd757 commited on
Commit
c8c5d3d
·
1 Parent(s): 3b060e5

app fixes_v2

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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.write(f"- {theme}: {prob:.2%}")
 
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__":