Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,14 +31,18 @@ def hsd_turkish(text_in):
|
|
31 |
return sentiment_tr
|
32 |
|
33 |
|
34 |
-
iface = gr.Interface(
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
42 |
|
43 |
|
44 |
st.sidebar.title("Hate Speech Detection")
|
|
|
31 |
return sentiment_tr
|
32 |
|
33 |
|
34 |
+
iface = gr.Interface(
|
35 |
+
fn=hsd_turkish,
|
36 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter Text here:"),
|
37 |
+
outputs=['text'], #gr.Textbox()
|
38 |
+
title = "HSD in Turkish",
|
39 |
+
theme = "peach"
|
40 |
+
)
|
41 |
+
|
42 |
+
iface.launch(debug=True,inline=False)
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
|
47 |
|
48 |
st.sidebar.title("Hate Speech Detection")
|