diff options
author | Jonathan <jbelt021@fiu.edu> | 2022-10-17 07:14:53 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-17 08:34:22 +0000 |
commit | f3fe487e6340b1a2db5d2e2ddf5ae885b4eef54c (patch) | |
tree | c412c07a05988667985368eb7c78c35a03759c13 /webui.py | |
parent | 9e02812afd10582f00a7fbbfa63c8f9188678e26 (diff) | |
download | stable-diffusion-webui-gfx803-f3fe487e6340b1a2db5d2e2ddf5ae885b4eef54c.tar.gz stable-diffusion-webui-gfx803-f3fe487e6340b1a2db5d2e2ddf5ae885b4eef54c.tar.bz2 stable-diffusion-webui-gfx803-f3fe487e6340b1a2db5d2e2ddf5ae885b4eef54c.zip |
Update webui.py
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -100,10 +100,7 @@ def webui(): if cmd_opts.api:
from modules.api.api import Api
- api = Api(txt2img=modules.txt2img.txt2img,
- img2img=modules.img2img.img2img,
- run_extras=modules.extras.run_extras,
- run_pnginfo=modules.extras.run_pnginfo)
+ api = Api()
api.launch(server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
port=cmd_opts.port if cmd_opts.port else 7861)
|