mirror of https://github.com/vladmandic/automatic
fix wildcards
parent
53d83468b6
commit
e194d3e6da
|
|
@ -1 +1 @@
|
|||
Subproject commit cc54cdfd9ed8fdef4524073b89639601fcabc399
|
||||
Subproject commit ff8fe1e90b642452e58985d9ccefe615975a74c5
|
||||
|
|
@ -98,7 +98,7 @@ def apply_wildcards_to_prompt(prompt, all_wildcards, seed=-1, silent=False):
|
|||
except Exception as e:
|
||||
shared.log.error(f'Wildcards: wildcard="{wildcard}" error={e}')
|
||||
t1 = time.time()
|
||||
prompt, replaced_file, not_found = apply_file_wildcards(prompt, [], [], seed)
|
||||
prompt, replaced_file, not_found = apply_file_wildcards(prompt, [], [], recursion=0, seed=seed)
|
||||
t2 = time.time()
|
||||
if replaced and not silent:
|
||||
shared.log.debug(f'Wildcards applied: {replaced} path="{shared.opts.wildcards_dir}" type=style time={t1-t0:.2f}')
|
||||
|
|
|
|||
|
|
@ -367,10 +367,11 @@ def create_ui(startup_timer = None):
|
|||
def switch_profiling():
|
||||
shared.cmd_opts.profile = not shared.cmd_opts.profile
|
||||
shared.log.warning(f'Profiling: {shared.cmd_opts.profile}')
|
||||
return 'Stop profiling' if shared.cmd_opts.profile else 'Start profiling'
|
||||
|
||||
unload_sd_model.click(fn=unload_sd_weights, inputs=[], outputs=[])
|
||||
reload_sd_model.click(fn=reload_sd_weights, inputs=[], outputs=[])
|
||||
enable_profiling.click(fn=switch_profiling, inputs=[], outputs=[])
|
||||
enable_profiling.click(fn=switch_profiling, inputs=[], outputs=[enable_profiling])
|
||||
request_notifications.click(fn=lambda: None, inputs=[], outputs=[], _js='function(){}')
|
||||
preview_theme.click(fn=None, _js='previewTheme', inputs=[], outputs=[])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue