lichorosario commited on
Commit
e301d80
·
1 Parent(s): 2401a23

Ajustar función clear_output en app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -274,9 +274,6 @@ with gr.Blocks(css=css) as demo:
274
 
275
 
276
  with gr.Row():
277
- def clear_output(image_slider):
278
- return gr.update(value=None)
279
-
280
  with gr.Column():
281
  generated_image = gr.Image(label="Input Image", type="filepath")
282
  enhace_button = gr.Button("Enhance Image")
@@ -311,6 +308,10 @@ with gr.Blocks(css=css) as demo:
311
  outputs=[]
312
  )
313
 
 
 
 
 
314
  enhace_button.click(
315
  fn=clear_output,
316
  inputs=[output_slider],
 
274
 
275
 
276
  with gr.Row():
 
 
 
277
  with gr.Column():
278
  generated_image = gr.Image(label="Input Image", type="filepath")
279
  enhace_button = gr.Button("Enhance Image")
 
308
  outputs=[]
309
  )
310
 
311
+
312
+ def clear_output(image_slider):
313
+ return image_slider
314
+
315
  enhace_button.click(
316
  fn=clear_output,
317
  inputs=[output_slider],