GoodML commited on
Commit
188cd92
·
verified ·
1 Parent(s): fbd1b77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,7 +72,7 @@ def main():
72
 
73
 
74
  # Initialize NLTK resources
75
- nltk.download('stopwords')
76
 
77
  # Create sidebar section for app description and links
78
  st.sidebar.title("Find the fake :mag_right:")
@@ -155,7 +155,7 @@ For any inquiries or feedback, please contact [email protected]
155
  st.subheader(":loudspeaker:Prediction:")
156
  # st.write("Prediction: ", prediction)
157
  # st.write("Prediction[0]: ", prediction[0])
158
- if prediction[0] == 1:
159
  st.write("This news is predicted to be **real**.:muscle:")
160
  else:
161
  st.write("This news is predicted to be **fake**.:shit:")
 
72
 
73
 
74
  # Initialize NLTK resources
75
+ # nltk.download('stopwords')
76
 
77
  # Create sidebar section for app description and links
78
  st.sidebar.title("Find the fake :mag_right:")
 
155
  st.subheader(":loudspeaker:Prediction:")
156
  # st.write("Prediction: ", prediction)
157
  # st.write("Prediction[0]: ", prediction[0])
158
+ if prediction == "TRUE":
159
  st.write("This news is predicted to be **real**.:muscle:")
160
  else:
161
  st.write("This news is predicted to be **fake**.:shit:")