Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,8 @@ def predict(prompt, ip_adapter_images, ip_adapter_scale=0.5, negative_prompt="",
|
|
23 |
if randomize_seed:
|
24 |
seed = random.randint(0, MAX_SEED)
|
25 |
|
|
|
|
|
26 |
# Optionally resize images if center crop is not selected
|
27 |
if not center_crop:
|
28 |
ip_adapter_images = [image.resize((224, 224)) for image in ip_adapter_images]
|
|
|
23 |
if randomize_seed:
|
24 |
seed = random.randint(0, MAX_SEED)
|
25 |
|
26 |
+
ip_adapter_images = [Image.open(image) for image in ip_adapter_images]
|
27 |
+
|
28 |
# Optionally resize images if center crop is not selected
|
29 |
if not center_crop:
|
30 |
ip_adapter_images = [image.resize((224, 224)) for image in ip_adapter_images]
|