scmlewis commited on
Commit
229a996
·
verified ·
1 Parent(s): 6f98710

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -94,7 +94,8 @@ with gr.Blocks() as iface:
94
 
95
  caption_output = gr.Textbox(label="Caption and Detected Objects", lines=3, interactive=False)
96
 
97
- gallery = gr.Gallery(label="Last 15 Images and Captions").style(columns=3, object_fit="contain", height="auto")
 
98
 
99
  generate_btn = gr.Button("Generate Caption")
100
 
 
94
 
95
  caption_output = gr.Textbox(label="Caption and Detected Objects", lines=3, interactive=False)
96
 
97
+ # Fixed: removed style() method, added scale parameter to Gallery
98
+ gallery = gr.Gallery(label="Last 15 Images and Captions", scale=3)
99
 
100
  generate_btn = gr.Button("Generate Caption")
101