Mpavan45 commited on
Commit
d6c6562
verified
1 Parent(s): 316ef0d

Update app.py

Browse files

![DALL路E 2025-03-19 12.15.26 - A landscape background image for a news-related Streamlit web application. The image features a futuristic newsroom with digital screens displaying br (1).jpg](https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/ut9wBSlRR2CCpw95V5ej8.jpeg)

Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -41,7 +41,7 @@ st.markdown(
41
  """
42
  <style>
43
  body {
44
- background-image: url('https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/SSSUXA0EnErpV8EIEXM-R.jpeg');
45
  background-size: cover;
46
  background-repeat: no-repeat;
47
  background-attachment: fixed;
@@ -167,6 +167,12 @@ except LookupError:
167
  stop_words = set(stopwords.words('english')).union({"pm"})
168
  lemmatizer = WordNetLemmatizer()
169
 
 
 
 
 
 
 
170
  # Preprocessing Function
171
  def pre_process(x):
172
  x = x.lower()
 
41
  """
42
  <style>
43
  body {
44
+ background-image: url('https://cdn-uploads.huggingface.co/production/uploads/675fab3a2d0851e23d23cad3/ut9wBSlRR2CCpw95V5ej8.jpeg');
45
  background-size: cover;
46
  background-repeat: no-repeat;
47
  background-attachment: fixed;
 
167
  stop_words = set(stopwords.words('english')).union({"pm"})
168
  lemmatizer = WordNetLemmatizer()
169
 
170
+ import nltk
171
+ nltk.download('punkt')
172
+ nltk.download('stopwords')
173
+ nltk.download('wordnet')
174
+
175
+
176
  # Preprocessing Function
177
  def pre_process(x):
178
  x = x.lower()