Update app.py
Browse files
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"
|
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(
|