Update images_history.py

pull/3/head
Rohan-Pa 2022-10-29 23:51:21 -07:00 committed by GitHub
parent 71900dcd6f
commit c3e21b34de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -44,9 +44,9 @@ def reduplicative_file_move(src, dst):
def save_image(file_name):
if file_name is not None and os.path.exists(file_name):
reduplicative_file_move(file_name, opts.outdir_save)
return "<div style='color:#999'>Moved to Favorites</div>"
else
return "<div style='color:#999'>Image not found</div>"
return "<div style='color:#999'>Moved to favorites</div>"
else:
return "<div style='color:#999'>Image not found (may have been already moved)</div>"
def delete_image(delete_num, name, filenames, image_index, visible_num):
if name == "":
@ -226,7 +226,7 @@ def create_tab(tabname):
img_file_time= gr.HTML()
with gr.Row(elem_id=tabname + "_images_history_button_panel") as button_panel:
if tabname != faverate_tab_name:
save_btn = gr.Button('Move to Favorites')
save_btn = gr.Button('Move to favorites')
try:
send_to_buttons = modules.generation_parameters_copypaste.create_buttons(["txt2img", "img2img", "inpaint", "extras"])
except: