Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,8 @@ if submit:
|
|
22 |
|
23 |
with torch.no_grad():
|
24 |
outputs = model(**batch)
|
25 |
-
st.write(outputs)
|
26 |
predictions = F.softmax(outputs.logits, dim = 1)
|
27 |
st.write(predictions)
|
|
|
|
|
|
22 |
|
23 |
with torch.no_grad():
|
24 |
outputs = model(**batch)
|
25 |
+
#st.write(outputs)
|
26 |
predictions = F.softmax(outputs.logits, dim = 1)
|
27 |
st.write(predictions)
|
28 |
+
labels = torch.argmax(predictions, dim = 1)
|
29 |
+
st.write(labels)
|