faranbutt789 commited on
Commit
614a445
·
verified ·
1 Parent(s): ba0a6a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -183,7 +183,13 @@ with gr.Blocks(title="FairFace Age & Gender — Multi-image Demo") as demo:
183
  img_input = gr.File(file_count="multiple", label="Upload images")
184
  run_btn = gr.Button("Run ▶️")
185
 
186
- gallery = gr.Gallery(label="Predictions", show_label=True, elem_id="gallery").style(grid=[3], height="auto")
 
 
 
 
 
 
187
 
188
  def run_and_predict(files):
189
  # files is list of uploaded file dicts or file paths depending on environment
 
183
  img_input = gr.File(file_count="multiple", label="Upload images")
184
  run_btn = gr.Button("Run ▶️")
185
 
186
+ gallery = gr.Gallery(
187
+ label="Predictions",
188
+ show_label=True,
189
+ elem_id="gallery",
190
+ columns=3, # 3 images per row
191
+ height="auto"
192
+ )
193
 
194
  def run_and_predict(files):
195
  # files is list of uploaded file dicts or file paths depending on environment