Spaces:
Running
Running
alejandroacho
commited on
Commit
·
5ca5453
1
Parent(s):
d598391
add allow flagging
Browse files
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
|
17 |
-
outputs=[gr.Text(label="
|
18 |
-
title="
|
19 |
-
description="
|
|
|
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__":
|