DevXCoder2025 commited on
Commit
266a7ed
·
verified ·
1 Parent(s): 3668449

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -222,9 +222,7 @@ with gr.Blocks(delete_cache=(3600, 3600)) as demo:
222
  columns=2,
223
  rows=1,
224
  object_fit="scale-down",
225
- show_download_button=True,
226
- type="pil",
227
- show_share_button=False
228
  )
229
 
230
  # --- Event Handling ---
@@ -243,6 +241,10 @@ with gr.Blocks(delete_cache=(3600, 3600)) as demo:
243
  fn=upscale_with_all_models,
244
  inputs=[input_image],
245
  outputs=[all_models_gallery],
 
 
 
 
246
  )
247
 
248
  # --- Pre-load the default model for a faster first-time user experience ---
 
222
  columns=2,
223
  rows=1,
224
  object_fit="scale-down",
225
+ show_download_button=True
 
 
226
  )
227
 
228
  # --- Event Handling ---
 
241
  fn=upscale_with_all_models,
242
  inputs=[input_image],
243
  outputs=[all_models_gallery],
244
+ ).then(
245
+ lambda x: x,
246
+ inputs=[all_models_gallery],
247
+ outputs=[all_models_gallery]
248
  )
249
 
250
  # --- Pre-load the default model for a faster first-time user experience ---