Skip to content

Commit

Permalink
Index
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollopy-tulane committed Apr 29, 2024
1 parent 9353218 commit 8bf4edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nlp/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def index():
text = basic_process(input_field)
text = cnn_process(text)
predictions_proba = cnn.predict(text)
pred = (predictions_proba > 0.5).astype(int)[0] # Assuming binary classification
pred = (predictions_proba > 0.5).astype(int)
proba = predictions_proba[0]
elif model_choice == 'bert':
tokenizer = BertTokenizerFast.from_pretrained('prajjwal1/bert-mini')
Expand Down

0 comments on commit 8bf4edb

Please sign in to comment.