Skip to content

Commit

Permalink
Update ui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 22, 2023
1 parent a4911ee commit b571170
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/ui.py
Expand Up @@ -688,8 +688,7 @@ def update_username():
if response.status_code == 200:
items = []
for item in json.loads(response.text):
items.append([item['username'], item['password'],
item['options'] if 'options' in item else '', shared.get_sagemaker_endpoints(item)])
items.append([item['username'], item['password'], item['options'] if 'options' in item else '', shared.get_sagemaker_endpoints(item)])
return gr.update(value=shared.username), gr.update(value=items if items != [] else None)
else:
return gr.update(value=shared.username), gr.update()
Expand Down

0 comments on commit b571170

Please sign in to comment.