TLeonidas commited on
Commit
7d53514
1 Parent(s): 8a6d389

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=labels[prediction[0]],
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