Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -355,17 +355,17 @@ with gr.Blocks(css="style.css") as demo:
|
|
355 |
|
356 |
# Add history accordion
|
357 |
with gr.Accordion("Generation History", open=False) as history_accordion:
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
|
370 |
gr.Examples(
|
371 |
examples=config.examples,
|
@@ -382,6 +382,7 @@ with gr.Accordion("Generation History", open=False) as history_accordion:
|
|
382 |
queue=False,
|
383 |
api_name=False,
|
384 |
)
|
|
|
385 |
aspect_ratio_selector.change(
|
386 |
fn=lambda x: gr.update(visible=x == "Custom"),
|
387 |
inputs=aspect_ratio_selector,
|
|
|
355 |
|
356 |
# Add history accordion
|
357 |
with gr.Accordion("Generation History", open=False) as history_accordion:
|
358 |
+
history_gallery = gr.Gallery(
|
359 |
+
label="History",
|
360 |
+
show_label=False,
|
361 |
+
elem_id="history_gallery",
|
362 |
+
columns=5,
|
363 |
+
rows=2,
|
364 |
+
height="auto"
|
365 |
+
)
|
366 |
+
with gr.Row():
|
367 |
+
selected_image = gr.Image(label="Selected Image", interactive=False)
|
368 |
+
selected_metadata = gr.JSON(label="Selected Metadata", show_label=False)
|
369 |
|
370 |
gr.Examples(
|
371 |
examples=config.examples,
|
|
|
382 |
queue=False,
|
383 |
api_name=False,
|
384 |
)
|
385 |
+
|
386 |
aspect_ratio_selector.change(
|
387 |
fn=lambda x: gr.update(visible=x == "Custom"),
|
388 |
inputs=aspect_ratio_selector,
|