Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,13 +4,13 @@ import gradio as gr
|
|
4 |
def gradio_comment(comment):
|
5 |
|
6 |
|
7 |
-
result = test_predict(comment)
|
8 |
|
9 |
if result == 'OTHER':
|
10 |
text = "NOT OFFENSİVE-OTHER"
|
11 |
|
12 |
else:
|
13 |
-
text = f"OFFENSİVE
|
14 |
|
15 |
|
16 |
|
|
|
4 |
def gradio_comment(comment):
|
5 |
|
6 |
|
7 |
+
result = test_predict(comment)[0]
|
8 |
|
9 |
if result == 'OTHER':
|
10 |
text = "NOT OFFENSİVE-OTHER"
|
11 |
|
12 |
else:
|
13 |
+
text = f"OFFENSİVE-{result}"
|
14 |
|
15 |
|
16 |
|