Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -120,8 +120,8 @@ with gr.Blocks() as interface:
|
|
120 |
submit_btn.click(gradio_interface, inputs=[image_input], outputs=[
|
121 |
palette_output, palette_image_output, css_code_output])
|
122 |
|
123 |
-
#
|
124 |
-
clear_btn.click(lambda: [None, None, None, None], outputs=[
|
125 |
image_input, palette_output, palette_image_output, css_code_output])
|
126 |
|
127 |
# Launch the interface
|
|
|
120 |
submit_btn.click(gradio_interface, inputs=[image_input], outputs=[
|
121 |
palette_output, palette_image_output, css_code_output])
|
122 |
|
123 |
+
# Clear button now resets the image input and clears all outputs
|
124 |
+
clear_btn.click(lambda: [None, None, None, None], inputs=[], outputs=[
|
125 |
image_input, palette_output, palette_image_output, css_code_output])
|
126 |
|
127 |
# Launch the interface
|