offensive speech app
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import requests
|
|
| 7 |
|
| 8 |
### Config
|
| 9 |
st.set_page_config(
|
| 10 |
-
page_title="
|
| 11 |
page_icon="⚠️",
|
| 12 |
layout="wide"
|
| 13 |
)
|
|
@@ -37,8 +37,8 @@ def hate_speech_detection(text):
|
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
-
st.title("
|
| 41 |
-
user_input = st.text_area("Enter a
|
| 42 |
|
| 43 |
if user_input:
|
| 44 |
prediction = hate_speech_detection(user_input)
|
|
|
|
| 7 |
|
| 8 |
### Config
|
| 9 |
st.set_page_config(
|
| 10 |
+
page_title="Offensive Speech Recognition",
|
| 11 |
page_icon="⚠️",
|
| 12 |
layout="wide"
|
| 13 |
)
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
+
st.title("Offensive Speech Detection")
|
| 41 |
+
user_input = st.text_area("Enter a text:")
|
| 42 |
|
| 43 |
if user_input:
|
| 44 |
prediction = hate_speech_detection(user_input)
|