Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"))
|