Spaces:
Sleeping
Sleeping
PRASHANTH REDDY
commited on
Commit
·
80c14fc
1
Parent(s):
58dbd62
Added all files
Browse files
app.py
CHANGED
|
@@ -4,6 +4,9 @@ from nltk.corpus import stopwords
|
|
| 4 |
from nltk.stem import WordNetLemmatizer
|
| 5 |
from sklearn.feature_extraction.text import CountVectorizer
|
| 6 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
count_vectorizer = joblib.load("count_vectorizer.joblib")
|
| 9 |
best_logistic_model = joblib.load("logistic_regression_model.joblib")
|
|
|
|
| 4 |
from nltk.stem import WordNetLemmatizer
|
| 5 |
from sklearn.feature_extraction.text import CountVectorizer
|
| 6 |
import gradio as gr
|
| 7 |
+
import nltk
|
| 8 |
+
nltk.download('punkt')
|
| 9 |
+
nltk.download('stopwords')
|
| 10 |
|
| 11 |
count_vectorizer = joblib.load("count_vectorizer.joblib")
|
| 12 |
best_logistic_model = joblib.load("logistic_regression_model.joblib")
|