Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def classify(text,choice):
|
|
37 |
features = vectorizer.transform(corpus).toarray()
|
38 |
prediction = nb_classifier.predict(features)
|
39 |
elif(choice == 2):
|
40 |
-
corpus = preprocess_for_bow_and_tfidf
|
41 |
features = tfidf_vectorizer.transform(corpus).toarray()
|
42 |
prediction = random_forest.predict(features)
|
43 |
if(prediction == 1):
|
|
|
37 |
features = vectorizer.transform(corpus).toarray()
|
38 |
prediction = nb_classifier.predict(features)
|
39 |
elif(choice == 2):
|
40 |
+
corpus = preprocess_for_bow_and_tfidf(text)
|
41 |
features = tfidf_vectorizer.transform(corpus).toarray()
|
42 |
prediction = random_forest.predict(features)
|
43 |
if(prediction == 1):
|