Spaces:
Runtime error
Runtime error
eeshawn
commited on
Commit
·
899e480
1
Parent(s):
60e1ec4
update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def clear():
|
|
33 |
"""
|
34 |
image_update = gr.Image.update(value=None)
|
35 |
conf_update = gr.Slider.update(value=0.5)
|
36 |
-
return image_update, conf_update
|
37 |
|
38 |
callback = gr.HuggingFaceDatasetSaver(hf_token=HF_TOKEN, dataset_name="crowdsourced_hand_seals", private=True)
|
39 |
|
@@ -80,7 +80,7 @@ with gr.Blocks() as demo:
|
|
80 |
# callback_inputs = [inputs, outputs]
|
81 |
# callback.setup(callback_inputs, "flagged_data")
|
82 |
|
83 |
-
clear_form.click(fn=clear, inputs=None, outputs=inputs, show_progress=False)
|
84 |
submit.click(fn=seal_detection, inputs=inputs, outputs=outputs)
|
85 |
# flag.click(lambda *args: callback.flag(args), inputs=callback_inputs, outputs=None, preprocess=False, show_progress=False)
|
86 |
|
|
|
33 |
"""
|
34 |
image_update = gr.Image.update(value=None)
|
35 |
conf_update = gr.Slider.update(value=0.5)
|
36 |
+
return image_update, conf_update, image_update
|
37 |
|
38 |
callback = gr.HuggingFaceDatasetSaver(hf_token=HF_TOKEN, dataset_name="crowdsourced_hand_seals", private=True)
|
39 |
|
|
|
80 |
# callback_inputs = [inputs, outputs]
|
81 |
# callback.setup(callback_inputs, "flagged_data")
|
82 |
|
83 |
+
clear_form.click(fn=clear, inputs=None, outputs=[inputs, outputs], show_progress=False)
|
84 |
submit.click(fn=seal_detection, inputs=inputs, outputs=outputs)
|
85 |
# flag.click(lambda *args: callback.flag(args), inputs=callback_inputs, outputs=None, preprocess=False, show_progress=False)
|
86 |
|