GoodML commited on
Commit
1e5ffd5
·
verified ·
1 Parent(s): f1da9ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -156,7 +156,7 @@ For any inquiries or feedback, please contact [email protected]
156
  st.write("Prediction: ", prediction)
157
  # st.write("Prediction[0]: ", prediction[0])
158
  # st.write()
159
- if prediction == "TRUE":
160
  st.write("This news is predicted to be **real**.:muscle:")
161
  else:
162
  st.write("This news is predicted to be **fake**.:shit:")
 
156
  st.write("Prediction: ", prediction)
157
  # st.write("Prediction[0]: ", prediction[0])
158
  # st.write()
159
+ if prediction.get("Real") > 0.5:
160
  st.write("This news is predicted to be **real**.:muscle:")
161
  else:
162
  st.write("This news is predicted to be **fake**.:shit:")