SoDehghan commited on
Commit
0b70d48
β€’
1 Parent(s): 10ecbee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- st.write(f"Detection: {sentiment_tr}, Strength: {sentiment_tr}")
 
 
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(' ')