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

add allow flagging

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -13,10 +13,11 @@ def detect_nsfw(text):
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
  )
21
 
22
  if __name__ == "__main__":
 
13
  # Definir la interfaz de Gradio
14
  iface = gr.Interface(
15
  fn=detect_nsfw,
16
+ inputs=gr.Textbox(lines=2, placeholder="Introduce the text here..."),
17
+ outputs=[gr.Text(label="Label"), gr.Number(label="Confidence")],
18
+ title="NSFW Text Detector",
19
+ description="This model detects NSFW content in text.",
20
+ allow_flagging="never"
21
  )
22
 
23
  if __name__ == "__main__":