Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,8 +119,9 @@ if st.button("Посмотреть топ"):
|
|
| 119 |
while current_prob < 0.95 and idx < len(elems):
|
| 120 |
current_elems.append(idx_to_tag[elems[idx]])
|
| 121 |
current_probs.append(probs[elems[idx]])
|
| 122 |
-
idx += 1
|
| 123 |
current_prob += probs[elems[idx]]
|
|
|
|
|
|
|
| 124 |
|
| 125 |
|
| 126 |
st.write(pd.DataFrame({
|
|
|
|
| 119 |
while current_prob < 0.95 and idx < len(elems):
|
| 120 |
current_elems.append(idx_to_tag[elems[idx]])
|
| 121 |
current_probs.append(probs[elems[idx]])
|
|
|
|
| 122 |
current_prob += probs[elems[idx]]
|
| 123 |
+
idx += 1
|
| 124 |
+
|
| 125 |
|
| 126 |
|
| 127 |
st.write(pd.DataFrame({
|