Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,9 @@ def seal_detection(
|
|
25 |
return render
|
26 |
|
27 |
def clear():
|
|
|
|
|
|
|
28 |
image_upload = gr.update(value=None)
|
29 |
conf_slider = gr.update(value=0.5)
|
30 |
return image_upload, conf_slider
|
@@ -67,7 +70,7 @@ with gr.Blocks() as demo:
|
|
67 |
"""
|
68 |
)
|
69 |
|
70 |
-
clear_form.click(fn=clear, inputs=None, outputs=inputs)
|
71 |
submit.click(fn=seal_detection, inputs=inputs, outputs=outputs)
|
72 |
|
73 |
demo.queue(api_open=False, max_size=10)
|
|
|
25 |
return render
|
26 |
|
27 |
def clear():
|
28 |
+
"""
|
29 |
+
Reset inputs.
|
30 |
+
"""
|
31 |
image_upload = gr.update(value=None)
|
32 |
conf_slider = gr.update(value=0.5)
|
33 |
return image_upload, conf_slider
|
|
|
70 |
"""
|
71 |
)
|
72 |
|
73 |
+
clear_form.click(fn=clear, inputs=None, outputs=inputs, show_progress=False)
|
74 |
submit.click(fn=seal_detection, inputs=inputs, outputs=outputs)
|
75 |
|
76 |
demo.queue(api_open=False, max_size=10)
|