Make gallery non-interactive

#2
by multimodalart HF Staff - opened
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -457,7 +457,7 @@ An Efficient Image Generation Foundation Model with Single-Stream Diffusion Tran
457
 
458
  with gr.Column(scale=1):
459
  output_gallery = gr.Gallery(
460
- label="Generated Images", columns=2, rows=2, height=600, object_fit="contain", format="png"
461
  )
462
  used_seed = gr.Textbox(label="Seed Used", interactive=False)
463
 
@@ -495,5 +495,8 @@ An Efficient Image Generation Foundation Model with Single-Stream Diffusion Tran
495
  outputs=[output_gallery, used_seed],
496
  )
497
 
 
 
 
498
  if __name__ == "__main__":
499
- demo.launch()
 
457
 
458
  with gr.Column(scale=1):
459
  output_gallery = gr.Gallery(
460
+ label="Generated Images", columns=2, rows=2, height=600, object_fit="contain", format="png", interactive=False
461
  )
462
  used_seed = gr.Textbox(label="Seed Used", interactive=False)
463
 
 
495
  outputs=[output_gallery, used_seed],
496
  )
497
 
498
+ css = '''
499
+ .fillable{max-width: 1230px}
500
+ '''
501
  if __name__ == "__main__":
502
+ demo.launch(css=css)