Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 22, 2023
1 parent 682894f commit 09702d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ def invocations(self, req: InvocationsRequest):
response = requests.post(url=f'{api_endpoint}/sd/user', json=inputs)
if response.status_code == 200 and response.text != '':
try:
user = json.loads(response.text)
shared.opts.data = user['options']
data = json.loads(response.text)
shared.opts.data = data['options']
with self.queue_lock:
sd_models.reload_model_weights()
except Exception as e:
Expand Down

0 comments on commit 09702d2

Please sign in to comment.