Skip to content

Commit

Permalink
log file
Browse files Browse the repository at this point in the history
  • Loading branch information
dr413677671 committed Jan 31, 2023
1 parent 537f5b1 commit f2375cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions paste_this_to_webui_scripts_folder/prompt_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ def scan_outputs(avatar_name):
if len(files) == 0:
continue
# print("Insert file:")
# for file in files:
# print(os.path.join(root, folder, file))
for file in files:
print(os.path.join(root, folder, file))
qc_dict[folder] = [os.path.join(root, folder, file) for file in files]

if len(qc_dict.keys()) == 0:
Expand Down Expand Up @@ -655,6 +655,7 @@ def ui(self, is_img2img):
def run(self, p, checkbox_iterate, avatar_dict, prompt_dict, default_negative, default_positive, dropdown, prompt_display, rename_button, label_avatar, open_button, export_button, skip_exist, label_presets, label_preview, preview_dropdown, preview_gallery, qc_select, qc_refresh, qc_show, selected_img):
global pg_templates
backup = copy.deepcopy(shared.opts)

shared.opts.data.update(pg_templates)
lines = [x.strip() for x in prompt_display.splitlines()]
lines = [x for x in lines if len(x) > 0]
Expand Down

0 comments on commit f2375cf

Please sign in to comment.