Skip to content

Commit

Permalink
fix issues with load option data
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 24, 2023
1 parent 2a25e7b commit 4642385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api/api.py
Expand Up @@ -419,7 +419,7 @@ def invocations(self, req: InvocationsRequest):
if response.status_code == 200 and response.text != '':
try:
data = json.loads(response.text)
shared.opts.data = data['options']
shared.opts.data = json.loads(data['options'])
with self.queue_lock:
sd_models.reload_model_weights()
except Exception as e:
Expand Down

0 comments on commit 4642385

Please sign in to comment.