gefedya commited on
Commit
2fb3f62
·
1 Parent(s): 5249038

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ with st.form(key='input_form'):
49
  if button:
50
  if to_analyze:
51
  pred = make_prediction(to_analyze)
52
- st.markdown(pred)
53
  else:
54
  st.markdown("Empty request. Please resubmit")
55
 
 
49
  if button:
50
  if to_analyze:
51
  pred = make_prediction(to_analyze)
52
+ st.markdown("Negative" if torch.argmax(pred.logits).item() == 0 else "Positive")
53
  else:
54
  st.markdown("Empty request. Please resubmit")
55