SaviAnna commited on
Commit
71d98a2
1 Parent(s): ab99c79

Update pages/✨second.py

Browse files
Files changed (1) hide show
  1. pages/✨second.py +1 -1
pages/✨second.py CHANGED
@@ -50,7 +50,7 @@ prediction = model.predict(user_features)
50
  inputs = tokenizer(user_review_clean, max_length=512, padding=True, truncation=True, return_tensors='pt')
51
  outputs = model_bert(**inputs)
52
  prediction_bert = torch.nn.functional.softmax(outputs.logits, dim=1)
53
- prediction_bert = torch.argmax(predicted, dim=1).numpy(
54
  st.write("Comment by ML model:", user_review)
55
 
56
  if prediction == 0:
 
50
  inputs = tokenizer(user_review_clean, max_length=512, padding=True, truncation=True, return_tensors='pt')
51
  outputs = model_bert(**inputs)
52
  prediction_bert = torch.nn.functional.softmax(outputs.logits, dim=1)
53
+ prediction_bert = torch.argmax(predicted, dim=1).numpy()
54
  st.write("Comment by ML model:", user_review)
55
 
56
  if prediction == 0: