Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def predict_hate_speech(text):
|
|
20 |
# Adjusted Gradio interface to take text input and output model predictions
|
21 |
iface = gr.Interface(fn=predict_hate_speech,
|
22 |
inputs=gr.Textbox(lines=2, placeholder="Enter Text Here..."),
|
23 |
-
outputs=
|
24 |
description="Detects hate speech in text. Outputs 'Neutral or Ambiguous', 'Not Hate', 'Offensive or Hate Speech'.")
|
25 |
iface.launch()
|
26 |
|
|
|
20 |
# Adjusted Gradio interface to take text input and output model predictions
|
21 |
iface = gr.Interface(fn=predict_hate_speech,
|
22 |
inputs=gr.Textbox(lines=2, placeholder="Enter Text Here..."),
|
23 |
+
outputs="text",
|
24 |
description="Detects hate speech in text. Outputs 'Neutral or Ambiguous', 'Not Hate', 'Offensive or Hate Speech'.")
|
25 |
iface.launch()
|
26 |
|