Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +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 |
-
print('ANSLEN'
|
| 91 |
st.markdown(f'{idx_to_tag[idx]}')
|
| 92 |
|
| 93 |
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', ans.shape)
|
| 91 |
st.markdown(f'{idx_to_tag[idx]}')
|
| 92 |
|
| 93 |
if st.button("Посмотреть топ"):
|