Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ with gr.Blocks(title="Safety Content Classifier", css="footer {display: none !im
|
|
96 |
)
|
97 |
|
98 |
# Update event handlers
|
99 |
-
check_button.click(fn=check_safety, inputs=[input_text
|
100 |
-
input_text.submit(fn=check_safety, inputs=[input_text
|
101 |
|
102 |
gr.Examples(
|
103 |
[
|
@@ -106,7 +106,7 @@ with gr.Blocks(title="Safety Content Classifier", css="footer {display: none !im
|
|
106 |
["", "example_images/unsafe_meme.png"],
|
107 |
["", "example_images/normal_photo.jpg"],
|
108 |
],
|
109 |
-
inputs=[input_text
|
110 |
)
|
111 |
|
112 |
demo.launch()
|
|
|
96 |
)
|
97 |
|
98 |
# Update event handlers
|
99 |
+
check_button.click(fn=check_safety, inputs=[input_text], outputs=output)
|
100 |
+
input_text.submit(fn=check_safety, inputs=[input_text], outputs=output)
|
101 |
|
102 |
gr.Examples(
|
103 |
[
|
|
|
106 |
["", "example_images/unsafe_meme.png"],
|
107 |
["", "example_images/normal_photo.jpg"],
|
108 |
],
|
109 |
+
inputs=[input_text]
|
110 |
)
|
111 |
|
112 |
demo.launch()
|