Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,8 @@ from nltk.corpus import stopwords
|
|
5 |
import string
|
6 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
7 |
from sklearn.naive_bayes import MultinomialNB
|
|
|
|
|
8 |
|
9 |
tfidf=pickle.load(open('tfidf.pkl','rb'))
|
10 |
model=pickle.load(open('model.pkl','rb'))
|
|
|
5 |
import string
|
6 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
7 |
from sklearn.naive_bayes import MultinomialNB
|
8 |
+
nltk.download('punkt')
|
9 |
+
nltk.download('stopwords')
|
10 |
|
11 |
tfidf=pickle.load(open('tfidf.pkl','rb'))
|
12 |
model=pickle.load(open('model.pkl','rb'))
|