@@ -613,7 +613,7 @@ def open_folder(f):
613
613
with gr .Column ():
614
614
with gr .Row ():
615
615
if tabname != "extras" :
616
- save = gr .Button ('Save' , elem_id = f'save_{ tabname } ' , visible = False )
616
+ save = gr .Button ('Save' , elem_id = f'save_{ tabname } ' )
617
617
618
618
buttons = parameters_copypaste .create_buttons (["img2img" , "inpaint" , "extras" ])
619
619
button_id = "hidden_element" if shared .cmd_opts .hide_ui_dir_config else 'open_folder'
@@ -667,16 +667,10 @@ def open_folder(f):
667
667
parameters_copypaste .bind_buttons (buttons , result_gallery , "txt2img" if tabname == "txt2img" else None )
668
668
return result_gallery , generation_info if tabname != "extras" else html_info_x , html_info
669
669
670
- txt2img_submit = None
671
- img2img_submit = None
672
- extras_submit = None
673
-
674
670
def update_sagemaker_endpoint ():
675
- print ('---sagemaker_endpoint---' , shared .opts .sagemaker_endpoint )
676
671
return gr .update (value = shared .opts .sagemaker_endpoint , choices = shared .sagemaker_endpoints )
677
672
678
673
def update_sd_model_checkpoint ():
679
- print ('---sd_model_checkpoint---' , shared .opts .sd_model_checkpoint )
680
674
return gr .update (value = shared .opts .sd_model_checkpoint , choices = modules .sd_models .checkpoint_tiles ())
681
675
682
676
def update_username ():
@@ -953,7 +947,6 @@ def request_restart():
953
947
with gr .Blocks (analytics_enabled = False ) as txt2img_interface :
954
948
txt2img_prompt , roll , txt2img_prompt_style , txt2img_negative_prompt , txt2img_prompt_style2 , submit , _ , _ , txt2img_prompt_style_apply , txt2img_save_style , txt2img_paste , token_counter , token_button = create_toprow (is_img2img = False )
955
949
txt_prompt_img = gr .File (label = "" , elem_id = "txt2img_prompt_image" , file_count = "single" , type = "bytes" , visible = False )
956
- txt2img_submit = submit
957
950
958
951
with gr .Row (elem_id = 'txt2img_progress_row' ):
959
952
with gr .Column (scale = 1 ):
@@ -1106,7 +1099,6 @@ def request_restart():
1106
1099
1107
1100
with gr .Blocks (analytics_enabled = False ) as img2img_interface :
1108
1101
img2img_prompt , roll , img2img_prompt_style , img2img_negative_prompt , img2img_prompt_style2 , submit , img2img_interrogate , img2img_deepbooru , img2img_prompt_style_apply , img2img_save_style , img2img_paste , token_counter , token_button = create_toprow (is_img2img = True )
1109
- img2img_submit = submit
1110
1102
1111
1103
with gr .Row (elem_id = 'img2img_progress_row' ):
1112
1104
img2img_prompt_img = gr .File (label = "" , elem_id = "img2img_prompt_image" , file_count = "single" , type = "bytes" , visible = False )
@@ -1371,7 +1363,6 @@ def update_orig(image, state):
1371
1363
show_extras_results = gr .Checkbox (label = 'Show result images' , value = True )
1372
1364
1373
1365
submit = gr .Button ('Generate' , elem_id = "extras_generate" , variant = 'primary' )
1374
- extras_submit = submit
1375
1366
1376
1367
with gr .Tabs (elem_id = "extras_resize_mode" ):
1377
1368
with gr .TabItem ('Scale by' ):
@@ -2035,7 +2026,6 @@ def save_userdata(user_dataframe, request: gr.Request):
2035
2026
'items' : items
2036
2027
}
2037
2028
response = requests .post (url = f'{ shared .api_endpoint } /sd/user' , json = inputs )
2038
- print (response .text )
2039
2029
if response .status_code == 200 :
2040
2030
print (response .text )
2041
2031
return user_dataframe
0 commit comments