Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,9 @@ if st.button("Click for predictions!", key="tr_predict"):
|
|
30 |
sentiment_tr = result_tr[0]["label"]
|
31 |
label_dict = {'LABEL_1': 'Hate β', 'LABEL_0': 'Non-hate β
'} #π«
|
32 |
sentiment_tr = label_dict[sentiment_tr]
|
33 |
-
|
|
|
|
|
34 |
|
35 |
|
36 |
st.write(' ')
|
|
|
30 |
sentiment_tr = result_tr[0]["label"]
|
31 |
label_dict = {'LABEL_1': 'Hate β', 'LABEL_0': 'Non-hate β
'} #π«
|
32 |
sentiment_tr = label_dict[sentiment_tr]
|
33 |
+
|
34 |
+
strength_tr = " "
|
35 |
+
st.write(f"Detection: {sentiment_tr}, ' ', Strength: {strength_tr}")
|
36 |
|
37 |
|
38 |
st.write(' ')
|