Skip to content

Commit

Permalink
DOing work
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollopy-tulane committed Apr 30, 2024
1 parent bb687ee commit 159d632
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nlp/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def index():
else:
prediction = "LOSS"
proba = 1 - positive_proba

prediction = None
proba = None
elif model_choice == 'lr':
model = lr
text = process_text(input_field)
Expand All @@ -50,6 +51,8 @@ def index():
else:
prediction == "LOSS"
proba = 1 - positive_proba
prediction = None
proba = None
elif model_choice == 'cnn':
# For CNN, assuming preprocessing is handled differently or is built-in
model_path = '/Users/jackiecollopy/Downloads/project-reddit/nlp/cnn_model.h5'
Expand Down

0 comments on commit 159d632

Please sign in to comment.