1NEYRON1 commited on
Commit
b8bf2e4
·
1 Parent(s): 8c06641

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -204,14 +204,11 @@ if st.button("Классифицировать"):
204
 
205
  cumulative_prob = 0
206
  t = 0.95
207
- t_str
208
  if top:
209
  if (top >= 0) and (top <= 1):
210
  t = top
211
- t_str = str(top * 100)
212
- elif (top > 1) and (top <= 100):
213
  t = top / 100
214
- t_str = str(top)
215
 
216
  st.subheader(f'Результаты классификации (top {t * 100}%):')
217
  for label, score in results:
 
204
 
205
  cumulative_prob = 0
206
  t = 0.95
 
207
  if top:
208
  if (top >= 0) and (top <= 1):
209
  t = top
210
+ elif (top > 1):
 
211
  t = top / 100
 
212
 
213
  st.subheader(f'Результаты классификации (top {t * 100}%):')
214
  for label, score in results: