diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-10 10:33:49 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-10 10:33:49 +0000 |
commit | 23f2989799ee3911d2959cfceb74b921f20c9a51 (patch) | |
tree | 98a3f98b8f7bb9f901b64af3a6e2f484d744bb66 /modules/ui.py | |
parent | 8a7c07a2140c98bceca858087525d77fd0352fda (diff) | |
download | stable-diffusion-webui-gfx803-23f2989799ee3911d2959cfceb74b921f20c9a51.tar.gz stable-diffusion-webui-gfx803-23f2989799ee3911d2959cfceb74b921f20c9a51.tar.bz2 stable-diffusion-webui-gfx803-23f2989799ee3911d2959cfceb74b921f20c9a51.zip |
images history over
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 8762fcf5..21c9236b 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1131,8 +1131,15 @@ def create_ui(wrap_gradio_gpu_call): return f'{changed} settings changed.', opts.dumpjson()
+ #images history
+ images_history_switch_dict = {
+ "fn":modules.generation_parameters_copypaste.connect_paste,
+ "t2i":txt2img_paste_fields,
+ "i2i":img2img_paste_fields
+ }
+ images_history = img_his.create_history_tabs(gr, opts, wrap_gradio_call(modules.extras.run_pnginfo), images_history_switch_dict)
- images_history = img_his.create_history_tabs(gr, opts)
+
with gr.Blocks(analytics_enabled=False) as settings_interface:
settings_submit = gr.Button(value="Apply settings", variant='primary')
result = gr.HTML()
|