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

Rename app.py to ap.py

Browse files
Files changed (1) hide show
  1. app.py β†’ ap.py +3 -1
app.py β†’ ap.py RENAMED
@@ -48,7 +48,9 @@ if st.button("Click for predictions!", key="ar_predict"):
48
  sentiment_ar = result_ar[0]["label"]
49
  label_dict = {'LABEL_1': 'Hate ❌', 'LABEL_0': 'Non-hate βœ…'}
50
  sentiment_ar = label_dict[sentiment_ar]
51
- st.write(f"Detection: {sentiment_ar}")
 
 
52
 
53
 
54
  st.sidebar.title("Hate Speech Detection")
 
48
  sentiment_ar = result_ar[0]["label"]
49
  label_dict = {'LABEL_1': 'Hate ❌', 'LABEL_0': 'Non-hate βœ…'}
50
  sentiment_ar = label_dict[sentiment_ar]
51
+
52
+ strength_tr = " "
53
+ st.write(f"Detection: {sentiment_ar}, ' ', Strength: {strength_ar})
54
 
55
 
56
  st.sidebar.title("Hate Speech Detection")