mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-04 13:55:06 +08:00
allow import as library for #72
This commit is contained in:
parent
4cb47bbf87
commit
beece7d85c
2
webui.py
2
webui.py
@ -160,7 +160,7 @@ modules.sd_hijack.model_hijack.hijack(shared.sd_model)
|
|||||||
|
|
||||||
modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
|
modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
# make the program just exit at ctrl+c without waiting for anything
|
# make the program just exit at ctrl+c without waiting for anything
|
||||||
def sigint_handler(sig, frame):
|
def sigint_handler(sig, frame):
|
||||||
print(f'Interrupted with singal {sig} in {frame}')
|
print(f'Interrupted with singal {sig} in {frame}')
|
||||||
|
Loading…
Reference in New Issue
Block a user