Spaces:
Runtime error
Runtime error
juliaannjose
commited on
Commit
·
0cd3e56
1
Parent(s):
8aad599
minor bug fix in output
Browse files
app.py
CHANGED
@@ -80,8 +80,8 @@ if st.button("Submit"):
|
|
80 |
st.title("Predicted Patentability")
|
81 |
if probability[0][0] > probability[0][1]:
|
82 |
st.write("Rejection Score:")
|
83 |
-
st.write(probability[0][0])
|
84 |
else:
|
85 |
st.write("Acceptance Score:")
|
86 |
-
st.write(probability[0][1])
|
87 |
-
st.write(pred_label)
|
|
|
80 |
st.title("Predicted Patentability")
|
81 |
if probability[0][0] > probability[0][1]:
|
82 |
st.write("Rejection Score:")
|
83 |
+
st.write(probability[0][0].item())
|
84 |
else:
|
85 |
st.write("Acceptance Score:")
|
86 |
+
st.write(probability[0][1].item())
|
87 |
+
st.write("Result:", pred_label)
|