patrickvonplaten commited on
Commit
69cc446
1 Parent(s): fb9b203
__pycache__/app.cpython-310.pyc ADDED
Binary file (6.64 kB). View file
 
__pycache__/gallery_history.cpython-310.pyc ADDED
Binary file (4.43 kB). View file
 
__pycache__/illusion_style.cpython-310.pyc ADDED
Binary file (985 Bytes). View file
 
__pycache__/share_btn.cpython-310.pyc ADDED
Binary file (6.95 kB). View file
 
app.py CHANGED
@@ -14,7 +14,7 @@ from diffusers import (
14
  EulerDiscreteScheduler # <-- Added import
15
  )
16
  from share_btn import community_icon_html, loading_icon_html, share_js
17
- # from gallery_history import fetch_gallery_history, show_gallery_history
18
  from illusion_style import css
19
 
20
  BASE_MODEL = "SG161222/Realistic_Vision_V5.1_noVAE"
@@ -189,18 +189,16 @@ with gr.Blocks(css=css) as app:
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
  )
193
- # ).then(
194
- # fn=fetch_gallery_history, inputs=[prompt, result_image], outputs=history, queue=False
195
- # )
196
  run_btn.click(
197
  inference,
198
  inputs=[control_image, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
199
  outputs=[result_image, share_group, used_seed]
 
 
200
  )
201
- # ).then(
202
- # fn=fetch_gallery_history, inputs=[prompt, result_image], outputs=history, queue=False
203
- # )
204
  share_button.click(None, [], [], _js=share_js)
205
  app.queue(max_size=20)
206
 
 
14
  EulerDiscreteScheduler # <-- Added import
15
  )
16
  from share_btn import community_icon_html, loading_icon_html, share_js
17
+ from gallery_history import fetch_gallery_history, show_gallery_history
18
  from illusion_style import css
19
 
20
  BASE_MODEL = "SG161222/Realistic_Vision_V5.1_noVAE"
 
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,
197
  inputs=[control_image, prompt, negative_prompt, guidance_scale, controlnet_conditioning_scale, control_start, control_end, strength, seed, sampler],
198
  outputs=[result_image, share_group, used_seed]
199
+ ).then(
200
+ fn=fetch_gallery_history, inputs=[prompt, result_image], outputs=history, queue=False
201
  )
 
 
 
202
  share_button.click(None, [], [], _js=share_js)
203
  app.queue(max_size=20)
204