kritsadaK commited on
Commit
a51feb7
·
1 Parent(s): 2e0498e
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -9,7 +9,9 @@ import re
9
  import string
10
  import pickle
11
 
 
12
  # Download necessary NLTK modules
 
13
  nltk.download('punkt')
14
  nltk.download('stopwords')
15
  nltk.download('wordnet')
@@ -78,7 +80,7 @@ MAX_SEQUENCE_LENGTH = 200 # Ensure this matches what the model was trained with
78
  THRESHOLD = 0.7 # Adjust threshold as needed
79
 
80
  # Streamlit interface
81
- st.title("📰 US Political Fake News Text Detector")
82
  st.write("Detect whether a given piece of news is fake or real based on its content. Enter a URL to analyze its authenticity or test with a sample text.")
83
 
84
 
 
9
  import string
10
  import pickle
11
 
12
+
13
  # Download necessary NLTK modules
14
+ import nltk
15
  nltk.download('punkt')
16
  nltk.download('stopwords')
17
  nltk.download('wordnet')
 
80
  THRESHOLD = 0.7 # Adjust threshold as needed
81
 
82
  # Streamlit interface
83
+ st.title("📰 US Political Fake News Text Detector By using LSTM")
84
  st.write("Detect whether a given piece of news is fake or real based on its content. Enter a URL to analyze its authenticity or test with a sample text.")
85
 
86