Update app.py
Browse files
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
|