Anujgr8 commited on
Commit
eb7843e
1 Parent(s): 2f7afce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,9 @@ import tempfile
6
  import google.generativeai as genai
7
  from nltk.corpus import stopwords
8
  from nltk.tokenize import word_tokenize, sent_tokenize
 
 
 
9
  def summarize_text(text):
10
  # Tokenizing the text
11
  stopWords = set(stopwords.words("english"))
 
6
  import google.generativeai as genai
7
  from nltk.corpus import stopwords
8
  from nltk.tokenize import word_tokenize, sent_tokenize
9
+ import nltk
10
+ nltk.download('stopwords')
11
+
12
  def summarize_text(text):
13
  # Tokenizing the text
14
  stopWords = set(stopwords.words("english"))