Skip to content

Commit a4911ee

Browse files
authored
Update webui.py
1 parent 09702d2 commit a4911ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def train():
360360
}
361361
response = requests.post(url=f'{api_endpoint}/sd/user', json=inputs)
362362
if response.status_code == 200 and response.text != '':
363-
user = json.loads(response.text)
364-
opts.data = user['options']
363+
data = json.loads(response.text)
364+
opts.data = data['options']
365365
modules.sd_models.load_model()
366366

367367
if train_task == 'embedding':

0 commit comments

Comments
 (0)