Spaces:
Sleeping
Sleeping
Update pages/✨second.py
Browse files- 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:
|