ilushado commited on
Commit
255c656
·
1 Parent(s): 5524325

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -111,6 +111,7 @@ if st.button('Предположить'):
111
 
112
  if st.button("Посмотреть топ"):
113
  if not ans:
 
114
  text = title + " : " + abstract
115
  inputs = tokenizer.encode_plus(
116
  text,
@@ -131,7 +132,7 @@ if st.button("Посмотреть топ"):
131
  probs = ans[0].softmax(dim=0)
132
  str = ''
133
  for el in elems:
134
- str += el + " : " + str(probs[el]) + "\n"
135
 
136
  st.markdown(str)
137
 
 
111
 
112
  if st.button("Посмотреть топ"):
113
  if not ans:
114
+ print(1)
115
  text = title + " : " + abstract
116
  inputs = tokenizer.encode_plus(
117
  text,
 
132
  probs = ans[0].softmax(dim=0)
133
  str = ''
134
  for el in elems:
135
+ str += str(el) + " : " + str(probs[el]) + "\n"
136
 
137
  st.markdown(str)
138