KushwanthK commited on
Commit
83c31db
·
verified ·
1 Parent(s): e788fd9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,7 +15,6 @@ import math
15
 
16
  from collections import Counter
17
  import nltk
18
- nltk.download('stopwords')
19
  from nltk.corpus import stopwords
20
 
21
 
@@ -136,7 +135,9 @@ def highlight_pdf(file_path, text_to_highlight, page_numbers):
136
 
137
  # Tokenize the text into words
138
  words = text_to_highlight.split()
139
-
 
 
140
  # Remove stopwords
141
  stop_words = set(stopwords.words("english"))
142
  words = [word for word in words if word.lower() not in stop_words]
 
15
 
16
  from collections import Counter
17
  import nltk
 
18
  from nltk.corpus import stopwords
19
 
20
 
 
135
 
136
  # Tokenize the text into words
137
  words = text_to_highlight.split()
138
+
139
+
140
+
141
  # Remove stopwords
142
  stop_words = set(stopwords.words("english"))
143
  words = [word for word in words if word.lower() not in stop_words]