ByteBlaze commited on
Commit
6f6379e
1 Parent(s): ac6af73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = CountVectorizer()
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]