Tweaks to load sd1 models in sd2 code, typos

This commit is contained in:
cmdr2
2022-11-25 13:57:15 +05:30
parent ea7b28c9d5
commit 02dd3e457d
4 changed files with 52 additions and 4 deletions

View File

@ -192,6 +192,7 @@ class SetAppConfigRequest(BaseModel):
ui_open_browser_on_start: bool = None
listen_to_network: bool = None
listen_port: int = None
test_sd2: bool = None
@app.post('/app_config')
async def setAppConfig(req : SetAppConfigRequest):
@ -212,6 +213,8 @@ async def setAppConfig(req : SetAppConfigRequest):
if 'net' not in config:
config['net'] = {}
config['net']['listen_port'] = int(req.listen_port)
if req.test_sd2 is not None:
config['test_sd2'] = req.test_sd2
try:
setConfig(config)