Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -234,11 +234,20 @@ with gr.Blocks(title="Stock Photo Downloader", css=css) as demo:
|
|
234 |
num_images_input = gr.Dropdown(label="Number of Images (Max 24)", choices=["4", "8", "12", "16", "20", "24"], value="4", info="How many images to fetch (up to 24).")
|
235 |
download_button = gr.Button("Fetch and Display Images", elem_classes=["fetch-button"])
|
236 |
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
gr.Markdown("### 🖼️ Image Gallery")
|
244 |
gr.Markdown("<p style='color: #666;'>Select images to include in your ZIP file.</p>")
|
|
|
234 |
num_images_input = gr.Dropdown(label="Number of Images (Max 24)", choices=["4", "8", "12", "16", "20", "24"], value="4", info="How many images to fetch (up to 24).")
|
235 |
download_button = gr.Button("Fetch and Display Images", elem_classes=["fetch-button"])
|
236 |
|
237 |
+
# Combine Status and Download sections in a single row with two columns
|
238 |
+
with gr.Row():
|
239 |
+
with gr.Column():
|
240 |
+
gr.Markdown("### 📊 Status")
|
241 |
+
status_output = gr.Textbox(
|
242 |
+
label="Status",
|
243 |
+
interactive=False,
|
244 |
+
placeholder="Status updates will appear here...",
|
245 |
+
elem_classes=["status-box"],
|
246 |
+
show_label=False
|
247 |
+
)
|
248 |
+
with gr.Column():
|
249 |
+
gr.Markdown("### 💾 Download Your Images")
|
250 |
+
zip_output = gr.File(label="Download ZIP", visible=False)
|
251 |
|
252 |
gr.Markdown("### 🖼️ Image Gallery")
|
253 |
gr.Markdown("<p style='color: #666;'>Select images to include in your ZIP file.</p>")
|