alejandroacho commited on
Commit
d598391
·
1 Parent(s): 1ca89b6

fix gradio input

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Textbox(lines=2, placeholder="Introduce el texto aquí..."),
17
- outputs=["text", "number"],
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
  )