Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -69,22 +69,21 @@ def load_examples():
|
|
69 |
img_path = os.path.join(test_img_dir, filename)
|
70 |
if os.path.exists(img_path):
|
71 |
# Use dimensions from original code for each specific example
|
72 |
-
if filename == "00.
|
73 |
height, width = 680, 1024
|
74 |
-
elif filename == "02.
|
75 |
height, width = 560, 1024
|
76 |
-
elif filename == "03.
|
77 |
height, width = 568, 1024
|
78 |
-
|
79 |
else:
|
80 |
height, width = 768, 768
|
81 |
|
82 |
examples.append([
|
83 |
example_prompts[i % len(example_prompts)], # User prompt (without system prompt)
|
84 |
Image.open(img_path), # Reference image
|
85 |
-
height,
|
86 |
-
width,
|
87 |
-
i + 1
|
88 |
])
|
89 |
|
90 |
return examples
|
|
|
69 |
img_path = os.path.join(test_img_dir, filename)
|
70 |
if os.path.exists(img_path):
|
71 |
# Use dimensions from original code for each specific example
|
72 |
+
if filename == "00.png":
|
73 |
height, width = 680, 1024
|
74 |
+
elif filename == "02.png":
|
75 |
height, width = 560, 1024
|
76 |
+
elif filename == "03.png":
|
77 |
height, width = 568, 1024
|
|
|
78 |
else:
|
79 |
height, width = 768, 768
|
80 |
|
81 |
examples.append([
|
82 |
example_prompts[i % len(example_prompts)], # User prompt (without system prompt)
|
83 |
Image.open(img_path), # Reference image
|
84 |
+
height, # Height
|
85 |
+
width, # Width
|
86 |
+
i + 1 # Seed
|
87 |
])
|
88 |
|
89 |
return examples
|