Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def generate(image_editor, prompt, neg_prompt, versions):
|
|
66 |
final_gallery = versions
|
67 |
final_gallery.append(final_image)
|
68 |
|
69 |
-
return final_dict, final_gallery
|
70 |
|
71 |
with gr.Blocks() as demo:
|
72 |
gr.Markdown("""
|
@@ -82,7 +82,7 @@ with gr.Blocks() as demo:
|
|
82 |
with gr.Accordion("Advanced Settings", open=False):
|
83 |
neg_prompt = gr.Textbox(label='Negative Prompt', value='ugly, deformed')
|
84 |
with gr.Column():
|
85 |
-
version_gallery = gr.Gallery(label="Versions", type="pil", object_fit='contain')
|
86 |
restore_button = gr.Button("Restore Version")
|
87 |
selected = gr.Number(show_label=False, visible=False)
|
88 |
|
|
|
66 |
final_gallery = versions
|
67 |
final_gallery.append(final_image)
|
68 |
|
69 |
+
return final_dict, gr.Gallery(value=final_gallery, visible=True)
|
70 |
|
71 |
with gr.Blocks() as demo:
|
72 |
gr.Markdown("""
|
|
|
82 |
with gr.Accordion("Advanced Settings", open=False):
|
83 |
neg_prompt = gr.Textbox(label='Negative Prompt', value='ugly, deformed')
|
84 |
with gr.Column():
|
85 |
+
version_gallery = gr.Gallery(label="Versions", type="pil", object_fit='contain', visible=False)
|
86 |
restore_button = gr.Button("Restore Version")
|
87 |
selected = gr.Number(show_label=False, visible=False)
|
88 |
|