ayethuzar commited on
Commit
de5a93f
·
unverified ·
1 Parent(s): 9615c66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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)