harpomaxx commited on
Commit
adf74ca
·
verified ·
1 Parent(s): f9e6a81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -81,12 +81,9 @@ with gr.Blocks() as demo:
81
  gallery = gr.Image(
82
  label="Generated image",
83
  type='pil',
84
- show_label = False
85
- ).style(
86
  width="256", # Use the full view width
87
- height="256", # Use the full view height
88
- object_fit="scale-down" # Maintain aspect ratio without cropping
89
- )
90
  btn.click(gr_generate_images, [text], gallery)
91
  gr.Examples(examples, inputs=[text])
92
  gr.HTML(
 
81
  gallery = gr.Image(
82
  label="Generated image",
83
  type='pil',
84
+ show_label = False,
 
85
  width="256", # Use the full view width
86
+ height="256") # Use the full view height
 
 
87
  btn.click(gr_generate_images, [text], gallery)
88
  gr.Examples(examples, inputs=[text])
89
  gr.HTML(