moved image extension to webui via async worker. Passing as parameter to log and get_current_html_path functions per feedback

This commit is contained in:
eddyizm
2024-01-12 22:49:07 -08:00
parent 9dfa1a99e3
commit ab3acb7817
4 changed files with 13 additions and 15 deletions
+4 -4
View File
@@ -259,7 +259,7 @@ with shared.gradio_root:
queue=False, show_progress=False)
if not args_manager.args.disable_image_log:
gr.HTML(f'<a href="/file={get_current_html_path()}" target="_blank">\U0001F4DA History Log</a>')
gr.HTML(f'<a href="/file={get_current_html_path(image_extension)}" target="_blank">\U0001F4DA History Log</a>')
with gr.Tab(label='Style'):
style_sorter.try_load_sorted_styles(
@@ -485,9 +485,9 @@ with shared.gradio_root:
scheduler_name, adaptive_cfg, refiner_swap_method, negative_prompt
], queue=False, show_progress=False)
image_extension.input(lambda x: modules.config.update_image_extension(x),
image_extension.input(lambda x: gr.update(image_extension=x),
inputs=image_extension)
advanced_checkbox.change(lambda x: gr.update(visible=x), advanced_checkbox, advanced_column,
queue=False, show_progress=False) \
.then(fn=lambda: None, _js='refresh_grid_delayed', queue=False, show_progress=False)
@@ -527,7 +527,7 @@ with shared.gradio_root:
ctrls = [
prompt, negative_prompt, style_selections,
performance_selection, aspect_ratios_selection, image_number, image_seed, sharpness, guidance_scale
performance_selection, aspect_ratios_selection, image_number, image_extension, image_seed, sharpness, guidance_scale
]
ctrls += [base_model, refiner_model, refiner_switch] + lora_ctrls