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