ilushado commited on
Commit
b6eafe4
·
1 Parent(s): cd4ae85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -87,6 +87,7 @@ if st.button('Предположить'):
87
 
88
  ans = model(ids.unsqueeze(0), mask.unsqueeze(0), token_type_ids.unsqueeze(0))
89
  idx = torch.nn.functional.softmax(ans[0], dim=0).argmax().item()
 
90
  st.markdown(f'{idx_to_tag[idx]}')
91
 
92
  if st.button("Посмотреть топ"):
 
87
 
88
  ans = model(ids.unsqueeze(0), mask.unsqueeze(0), token_type_ids.unsqueeze(0))
89
  idx = torch.nn.functional.softmax(ans[0], dim=0).argmax().item()
90
+ print('ANSLEN': len(ans))
91
  st.markdown(f'{idx_to_tag[idx]}')
92
 
93
  if st.button("Посмотреть топ"):