Adityaganesh commited on
Commit
fbc0fca
·
verified ·
1 Parent(s): 93935dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from nltk.tokenize import word_tokenize
9
  from nltk.corpus import stopwords
10
  from nltk.stem import WordNetLemmatizer
11
  # Download necessary resources
12
- nltk.download('punkt')
13
  nltk.download('stopwords')
14
  nltk.download('wordnet')
15
 
@@ -40,7 +40,7 @@ def set_background(image_path):
40
  st.markdown(bg_image_style, unsafe_allow_html=True)
41
 
42
  # Update the image path
43
- set_background("page/News image 2.png") # Ensure the image is in the correct folder
44
 
45
  # Initialize stopwords and lemmatizer
46
  stop_words = set(stopwords.words('english')).union({"pm"})
 
9
  from nltk.corpus import stopwords
10
  from nltk.stem import WordNetLemmatizer
11
  # Download necessary resources
12
+ nltk.download('punkt_tab')
13
  nltk.download('stopwords')
14
  nltk.download('wordnet')
15
 
 
40
  st.markdown(bg_image_style, unsafe_allow_html=True)
41
 
42
  # Update the image path
43
+ set_background("Images/News image 1.png") # Ensure the image is in the correct folder
44
 
45
  # Initialize stopwords and lemmatizer
46
  stop_words = set(stopwords.words('english')).union({"pm"})