Skip to content

Commit

Permalink
Fixing Text
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollopy-tulane committed Apr 29, 2024
1 parent dd7f594 commit dda8758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nlp/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def index():
model_choice = form.model_choice.data

if model_choice == 'bnb':
model = bnbtext = process_text(input_field)
model = bnb
text = process_text(input_field)
text = bnb_vectorizer.transform([text])
pred_labels = bnb.predict(text)
probas = bnb.predict_proba(text)
Expand Down

0 comments on commit dda8758

Please sign in to comment.