ByteBlaze commited on
Commit
adeed96
1 Parent(s): 54db931

Update app.py

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