bump gradio to 3.27

This commit is contained in:
AUTOMATIC
2023-04-29 09:17:35 +03:00
parent 22bcc7be42
commit 101a18fc84
6 changed files with 14 additions and 15 deletions

View File

@@ -18,9 +18,14 @@ def run_postprocessing(extras_mode, image, image_folder, input_dir, output_dir,
if extras_mode == 1:
for img in image_folder:
image = Image.open(img)
if isinstance(img, Image.Image):
fn = ''
else:
image = Image.open(img)
fn = os.path.splitext(img.orig_name)[0]
image_data.append(image)
image_names.append(os.path.splitext(img.orig_name)[0])
image_names.append(fn)
elif extras_mode == 2:
assert not shared.cmd_opts.hide_ui_dir_config, '--hide-ui-dir-config option must be disabled'
assert input_dir, 'input directory not selected'