Spaces:
Running
Running
Commit
·
d598391
1
Parent(s):
1ca89b6
fix gradio input
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ def detect_nsfw(text):
|
|
13 |
# Definir la interfaz de Gradio
|
14 |
iface = gr.Interface(
|
15 |
fn=detect_nsfw,
|
16 |
-
inputs=gr.
|
17 |
-
outputs=["
|
18 |
title="Detector de Texto NSFW",
|
19 |
description="Introduce un texto para verificar si contiene contenido NSFW."
|
20 |
)
|
|
|
13 |
# Definir la interfaz de Gradio
|
14 |
iface = gr.Interface(
|
15 |
fn=detect_nsfw,
|
16 |
+
inputs=gr.Textbox(lines=2, placeholder="Introduce el texto aquí..."),
|
17 |
+
outputs=[gr.Text(label="Etiqueta"), gr.Number(label="Confianza")],
|
18 |
title="Detector de Texto NSFW",
|
19 |
description="Introduce un texto para verificar si contiene contenido NSFW."
|
20 |
)
|