Adityaganesh commited on
Commit
a4c3d0e
·
verified ·
1 Parent(s): fcc7c0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
 
@@ -35,7 +35,7 @@ def set_background(image_path):
35
  left: 0;
36
  width: 100%;
37
  height: 100%;
38
- background-image: url("data:image/png;base64,{encoded_img}");
39
  background-size: cover;
40
  background-repeat: no-repeat;
41
  background-position: center;
@@ -46,7 +46,7 @@ def set_background(image_path):
46
  st.markdown(bg_image_style, unsafe_allow_html=True)
47
 
48
  # Update the image path
49
- set_background("Images/News image.png") # Ensure the image is in the correct folder
50
 
51
  # Initialize stopwords and lemmatizer
52
  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
 
 
35
  left: 0;
36
  width: 100%;
37
  height: 100%;
38
+ background-image: url("data:image/jpg;base64,{encoded_img}");
39
  background-size: cover;
40
  background-repeat: no-repeat;
41
  background-position: center;
 
46
  st.markdown(bg_image_style, unsafe_allow_html=True)
47
 
48
  # Update the image path
49
+ set_background("Images/News image.jpg") # Ensure the image is in the correct folder
50
 
51
  # Initialize stopwords and lemmatizer
52
  stop_words = set(stopwords.words('english')).union({"pm"})