Commit 4c0f8e4 1 parent 7faf90a commit 4c0f8e4 Copy full SHA for 4c0f8e4
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -672,11 +672,11 @@ def open_folder(f):
672
672
extras_submit = None
673
673
674
674
def update_sagemaker_endpoint ():
675
- print (shared .opts .sagemaker_endpoint )
675
+ print ('---sagemaker_endpoint---' , shared .opts .sagemaker_endpoint )
676
676
return gr .update (value = shared .opts .sagemaker_endpoint , choices = shared .sagemaker_endpoints )
677
677
678
678
def update_sd_model_checkpoint ():
679
- print (shared .opts .sd_model_checkpoint )
679
+ print ('---sd_model_checkpoint---' , shared .opts .sd_model_checkpoint )
680
680
return gr .update (value = shared .opts .sd_model_checkpoint , choices = modules .sd_models .checkpoint_tiles ())
681
681
682
682
def update_username ():
@@ -685,12 +685,11 @@ def update_username():
685
685
'action' : 'load'
686
686
}
687
687
response = requests .post (url = f'{ shared .api_endpoint } /sd/user' , json = inputs )
688
- print (response .text )
689
688
if response .status_code == 200 :
690
689
items = []
691
690
for item in json .loads (response .text ):
692
691
items .append ([item ['username' ], item ['password' ], item ['options' ] if 'options' in item else '' ])
693
- return gr .update (value = shared .username ), gr .update (value = items )
692
+ return gr .update (value = shared .username ), gr .update (value = items if items != [] else None )
694
693
else :
695
694
return gr .update (value = shared .username ), gr .update ()
696
695
else :
You can’t perform that action at this time.
0 commit comments