Skip to content

Commit 6acd368

Browse files
committed
Test: updated code to pass non-interactive layer after end of cropping list has been reached
1 parent 2c66c6a commit 6acd368

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/gradio_code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def get_files(files_list, folder_loc, im, count, old_file, value_box):
4949
with Image.open(old_file) as img_old:
5050
img_old = img_old.resize((w, h))
5151
img_old.save(os.path.join(folder_path_mc, "img_cropped_{}.png".format(file_count)))
52-
im["composite"] = os.path.join(current_folder, "images", "static", "Designer.png")
52+
# im["composite"] = os.path.join(current_folder, "images", "static", "Designer.png")
53+
return gr.ImageEditor(interactive=False), counter, old_file
5354

5455
else:
5556
filename = files_list[counter]

0 commit comments

Comments
 (0)