Spaces:
Sleeping
Sleeping
Rename app.py to ap.py
Browse files- 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 |
-
|
|
|
|
|
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")
|