Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,8 @@ def predict_toxicity(text):
|
|
| 45 |
</div>
|
| 46 |
"""
|
| 47 |
|
| 48 |
-
|
|
|
|
| 49 |
|
| 50 |
with gr.Blocks(theme=gr.themes.Soft(), title="AI Toxic Comment Detector") as demo:
|
| 51 |
|
|
|
|
| 45 |
</div>
|
| 46 |
"""
|
| 47 |
|
| 48 |
+
# Modified here: Removed Chinese characters
|
| 49 |
+
return result_html, {"Toxic": toxic_prob, "Normal": non_toxic_prob}
|
| 50 |
|
| 51 |
with gr.Blocks(theme=gr.themes.Soft(), title="AI Toxic Comment Detector") as demo:
|
| 52 |
|