kaupane commited on
Commit
ea1e7c8
·
verified ·
1 Parent(s): 44af800

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -20
app.py CHANGED
@@ -279,28 +279,17 @@ with gr.Blocks(title="DiT Diffusion Model Generator", theme=gr.themes.Soft()) as
279
  progress_bar = gr.Progress(track_tqdm=True)
280
 
281
  with gr.Column(scale=2):
282
- with gr.Box(elem_id="gallery_container"):
283
- output_gallery = gr.Gallery(
284
- label="Generated Images",
285
- columns=4,
286
- rows=3,
287
- object_fit="contain",
288
- elem_id="scrollable_gallery"
289
- )
 
290
  error_message = gr.Textbox(label="Error", visible=False, max_lines=3, container=True, elem_id="error_box")
291
 
292
- gr.HTML("""
293
- <style>
294
- #gallery_container {
295
- height: 600px;
296
- overflow-y: auto;
297
- padding-right: 10px;
298
- }
299
- #scrollable_gallery {
300
- min-height: 100%
301
- }
302
- </style>
303
- """)
304
 
305
  dit_size.change(update_sample_slider, inputs=[dit_size],outputs=[num_samples])
306
 
 
279
  progress_bar = gr.Progress(track_tqdm=True)
280
 
281
  with gr.Column(scale=2):
282
+ output_gallery = gr.Gallery(
283
+ label="Generated Images",
284
+ columns=4,
285
+ rows=3,
286
+ height=550,
287
+ object_fit="contain",
288
+ allow_preview=True,
289
+ show_download_button=True
290
+ )
291
  error_message = gr.Textbox(label="Error", visible=False, max_lines=3, container=True, elem_id="error_box")
292
 
 
 
 
 
 
 
 
 
 
 
 
 
293
 
294
  dit_size.change(update_sample_slider, inputs=[dit_size],outputs=[num_samples])
295