Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def predict(image, files=None):
|
|
28 |
print(image, files)
|
29 |
images_paths = [image]
|
30 |
if not files == None:
|
31 |
-
|
32 |
pil_images = [Image.open(image_path).convert("RGB") for image_path in images_paths]
|
33 |
|
34 |
style = style_pipe(pil_images)
|
|
|
28 |
print(image, files)
|
29 |
images_paths = [image]
|
30 |
if not files == None:
|
31 |
+
images_paths = list(map(lambda x: x.name, files))
|
32 |
pil_images = [Image.open(image_path).convert("RGB") for image_path in images_paths]
|
33 |
|
34 |
style = style_pipe(pil_images)
|