animrods commited on
Commit
420808c
1 Parent(s): 93033c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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]