chandrujobs commited on
Commit
efb43fd
·
verified ·
1 Parent(s): f9defb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # The Clear button now resets the image input and clears all outputs
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