Populate the history gallery by default

This commit is contained in:
oobabooga 2025-12-01 10:51:12 -08:00
parent e301dd231e
commit 9b07a83330

View file

@ -153,7 +153,7 @@ def create_ui():
with gr.TabItem("Gallery"):
with gr.Row():
shared.gradio['image_refresh_history'] = gr.Button("🔄 Refresh Gallery", elem_classes="refresh-button")
shared.gradio['image_history_gallery'] = gr.Gallery(label="History", show_label=False, columns=6, object_fit="cover", height="auto", allow_preview=True, elem_id="image-history-gallery")
shared.gradio['image_history_gallery'] = gr.Gallery(value=lambda : get_history_images(), label="History", show_label=False, columns=6, object_fit="cover", height="auto", allow_preview=True, elem_id="image-history-gallery")
# TAB 3: MODEL
with gr.TabItem("Model"):