Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from sklearn.feature_extraction.text import CountVectorizer
|
3 |
import joblib
|
4 |
|
5 |
-
vectorizer =
|
6 |
nb_classifier = joblib.load('./nb_classifier.pkl')
|
7 |
def classify(text):
|
8 |
corpus=[text]
|
|
|
2 |
from sklearn.feature_extraction.text import CountVectorizer
|
3 |
import joblib
|
4 |
|
5 |
+
vectorizer = joblib.load('./vectorizer.pkl')
|
6 |
nb_classifier = joblib.load('./nb_classifier.pkl')
|
7 |
def classify(text):
|
8 |
corpus=[text]
|