Skip to content

Commit 2bd01b7

Browse files
committed
fix issues with load data when logining
1 parent 86ce539 commit 2bd01b7

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
@@ -165,13 +165,13 @@ def user_auth(username, password):
165165
if response.status_code == 200:
166166
try:
167167
body = json.loads(response.text)
168-
options = json.loads(body)['options']
168+
options = json.loads(json.loads(body)['options'])
169169
except Exception as e:
170170
print(e)
171171
options = None
172172

173173
if options != None:
174-
shared.opts.data = json.loads(options)
174+
shared.opts.data = options
175175

176176
shared.refresh_sagemaker_endpoints(username)
177177
shared.refresh_checkpoints(shared.opts.sagemaker_endpoint)

0 commit comments

Comments
 (0)