Spaces:
Running
on
Zero
Running
on
Zero
patrickvonplaten
commited on
Commit
•
679bb81
1
Parent(s):
70b9430
make style
Browse files
app.py
CHANGED
@@ -184,13 +184,13 @@ with gr.Blocks(css=css) as app:
|
|
184 |
loading_icon = gr.HTML(loading_icon_html)
|
185 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
186 |
|
187 |
-
|
188 |
prompt.submit(
|
189 |
inference,
|
190 |
inputs=[control_image, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
|
191 |
outputs=[result_image, share_group, used_seed]
|
192 |
).then(
|
193 |
-
|
194 |
)
|
195 |
run_btn.click(
|
196 |
inference,
|
|
|
184 |
loading_icon = gr.HTML(loading_icon_html)
|
185 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
186 |
|
187 |
+
history = show_gallery_history()
|
188 |
prompt.submit(
|
189 |
inference,
|
190 |
inputs=[control_image, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
|
191 |
outputs=[result_image, share_group, used_seed]
|
192 |
).then(
|
193 |
+
fn=fetch_gallery_history, inputs=[prompt, result_image], outputs=history, queue=False
|
194 |
)
|
195 |
run_btn.click(
|
196 |
inference,
|