thushalya
commited on
Commit
•
cfb943c
1
Parent(s):
f589a31
Remove torch.sigmoid
Browse files
app.py
CHANGED
@@ -372,7 +372,7 @@ def greet(tweet):
|
|
372 |
# print(personality_detection(tweet))
|
373 |
# print(str(features_list["Average_Word_Length"]))
|
374 |
# print(calc_emotion_score(tweet))
|
375 |
-
predicted_class = torch.round(
|
376 |
print("end")
|
377 |
if (predicted_class==0.0):
|
378 |
label = "Hate"
|
|
|
372 |
# print(personality_detection(tweet))
|
373 |
# print(str(features_list["Average_Word_Length"]))
|
374 |
# print(calc_emotion_score(tweet))
|
375 |
+
predicted_class = torch.round(prediction).item()
|
376 |
print("end")
|
377 |
if (predicted_class==0.0):
|
378 |
label = "Hate"
|