Spaces:
Runtime error
Runtime error
davidmasip
commited on
Commit
•
9a13795
1
Parent(s):
dbc82f4
Better examples
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def racism_analysis(text):
|
|
16 |
gradio_ui = gr.Interface(
|
17 |
fn=racism_analysis,
|
18 |
title="Racism Detector (Spanish)",
|
19 |
-
description="Enter some text and check if model detects
|
20 |
inputs=[
|
21 |
gr.inputs.Textbox(lines=5, label="Paste some text here"),
|
22 |
],
|
@@ -25,8 +25,8 @@ gradio_ui = gr.Interface(
|
|
25 |
gr.outputs.Textbox(label="Score"),
|
26 |
],
|
27 |
examples=[
|
28 |
-
["
|
29 |
-
["
|
30 |
],
|
31 |
)
|
32 |
|
|
|
16 |
gradio_ui = gr.Interface(
|
17 |
fn=racism_analysis,
|
18 |
title="Racism Detector (Spanish)",
|
19 |
+
description="Enter some text and check if model detects racism.",
|
20 |
inputs=[
|
21 |
gr.inputs.Textbox(lines=5, label="Paste some text here"),
|
22 |
],
|
|
|
25 |
gr.outputs.Textbox(label="Score"),
|
26 |
],
|
27 |
examples=[
|
28 |
+
["Unos menas roban a una mujer"],
|
29 |
+
["El gobierno levanta el confinamiento"]
|
30 |
],
|
31 |
)
|
32 |
|