Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,8 +53,8 @@ def predict(text):
|
|
53 |
|
54 |
iface = gr.Interface(
|
55 |
fn=predict,
|
56 |
-
inputs=gr.
|
57 |
-
outputs=[gr.
|
58 |
title="Hate Speech Classifier",
|
59 |
description="A classifier to detect hate speech in a given text.",
|
60 |
)
|
|
|
53 |
|
54 |
iface = gr.Interface(
|
55 |
fn=predict,
|
56 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter text here..."),
|
57 |
+
outputs=[gr.Textbox(label="Prediction"), gr.Textbox(label="Probabilities")],
|
58 |
title="Hate Speech Classifier",
|
59 |
description="A classifier to detect hate speech in a given text.",
|
60 |
)
|