Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 aniketpanchal1257@gmail.com
|
|
| 155 |
st.subheader(":loudspeaker:Prediction:")
|
| 156 |
# st.write("Prediction: ", prediction)
|
| 157 |
# st.write("Prediction[0]: ", prediction[0])
|
| 158 |
-
if prediction
|
| 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:")
|