allow import as library for #72
This commit is contained in:
parent
4cb47bbf87
commit
beece7d85c
1 changed files with 13 additions and 13 deletions
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"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# make the program just exit at ctrl+c without waiting for anything
|
||||
def sigint_handler(sig, frame):
|
||||
print(f'Interrupted with singal {sig} in {frame}')
|
||||
|
|
Loading…
Reference in a new issue