1NEYRON1 commited on
Commit
0d397bb
·
1 Parent(s): e7531a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ if st.button("🚀 Классифицировать"):
202
  cumulative_prob = 0.0
203
  st.subheader(f"📚 Топ категорий (до {int(t*100)}% совокупной вероятности):")
204
  for label, score in results:
205
- st.write(f"- **{label}**: {score:.4f}")
206
  cumulative_prob += score
207
  if cumulative_prob >= t:
208
  break
 
202
  cumulative_prob = 0.0
203
  st.subheader(f"📚 Топ категорий (до {int(t*100)}% совокупной вероятности):")
204
  for label, score in results:
205
+ st.write(f"- **{label}**: {score*100:.4f}%")
206
  cumulative_prob += score
207
  if cumulative_prob >= t:
208
  break