Spaces:
Running
Running
vishal2023
commited on
Commit
·
880aa1f
1
Parent(s):
b84a266
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ from nltk.corpus import stopwords
|
|
7 |
from nltk.stem.porter import PorterStemmer
|
8 |
import gradio as gr
|
9 |
|
10 |
-
model = joblib.load('
|
11 |
-
tfidf = joblib.load('
|
12 |
-
pipe = joblib.load('
|
13 |
|
14 |
def predict_NB(text):
|
15 |
text = text.lower()
|
|
|
7 |
from nltk.stem.porter import PorterStemmer
|
8 |
import gradio as gr
|
9 |
|
10 |
+
model = joblib.load('naive_bayes_model.sav')
|
11 |
+
tfidf = joblib.load('TfIdfVectorizer.sav')
|
12 |
+
pipe = joblib.load('pipeline.sav')
|
13 |
|
14 |
def predict_NB(text):
|
15 |
text = text.lower()
|