Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|