Spaces:
Runtime error
Runtime error
Ankur Goyal
commited on
Commit
•
08b4b49
1
Parent(s):
e62060d
Fix clear button
Browse files
app.py
CHANGED
@@ -326,12 +326,14 @@ with gr.Blocks(css=CSS) as demo:
|
|
326 |
lambda _: (
|
327 |
gr.update(visible=False, value=None),
|
328 |
None,
|
|
|
329 |
gr.update(visible=False, value=None),
|
330 |
gr.update(visible=False, value=None),
|
331 |
gr.update(visible=False),
|
332 |
None,
|
333 |
None,
|
334 |
None,
|
|
|
335 |
),
|
336 |
inputs=img_clear_button,
|
337 |
outputs=[
|
@@ -343,6 +345,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
343 |
example_image,
|
344 |
upload,
|
345 |
url,
|
|
|
346 |
],
|
347 |
)
|
348 |
clear_button.click(
|
@@ -355,6 +358,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
355 |
None,
|
356 |
None,
|
357 |
None,
|
|
|
358 |
),
|
359 |
inputs=clear_button,
|
360 |
outputs=[
|
@@ -366,6 +370,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
366 |
example_image,
|
367 |
upload,
|
368 |
url,
|
|
|
369 |
],
|
370 |
)
|
371 |
|
|
|
326 |
lambda _: (
|
327 |
gr.update(visible=False, value=None),
|
328 |
None,
|
329 |
+
None,
|
330 |
gr.update(visible=False, value=None),
|
331 |
gr.update(visible=False, value=None),
|
332 |
gr.update(visible=False),
|
333 |
None,
|
334 |
None,
|
335 |
None,
|
336 |
+
None,
|
337 |
),
|
338 |
inputs=img_clear_button,
|
339 |
outputs=[
|
|
|
345 |
example_image,
|
346 |
upload,
|
347 |
url,
|
348 |
+
question,
|
349 |
],
|
350 |
)
|
351 |
clear_button.click(
|
|
|
358 |
None,
|
359 |
None,
|
360 |
None,
|
361 |
+
None,
|
362 |
),
|
363 |
inputs=clear_button,
|
364 |
outputs=[
|
|
|
370 |
example_image,
|
371 |
upload,
|
372 |
url,
|
373 |
+
question,
|
374 |
],
|
375 |
)
|
376 |
|