Skip to content

Commit

Permalink
Nice
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollopy-tulane committed Apr 30, 2024
1 parent adb1f35 commit e366dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nlp/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def index():
probas = (preds > 0.5).astype(int)
if preds == 1:
prediction = "WIN"
proba = probas
proba = probas[1]
else:
prediction = "LOSS"
proba = proba
proba = proba[0]
elif model_choice == 'bert':
tokenizer = BertTokenizerFast.from_pretrained('prajjwal1/bert-mini')
model = AutoModelForSequenceClassification.from_pretrained('/Users/jackiecollopy/Downloads/project-reddit/notebooks/bert.pth')
Expand Down

0 comments on commit e366dba

Please sign in to comment.