Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -62,10 +62,10 @@ def generate_image(category, img1, img2, img3, height, width, img_guidance_scale
|
|
62 |
input_images = None
|
63 |
|
64 |
#wears = predict_clothing(input_images[1:])
|
65 |
-
if len(
|
66 |
#dress = wears[0]
|
67 |
text = f"""A {category} wearing a dress, with completely white background. The {category} is in <img><|image_1|></img>. The dress is in <img><|image_2|></img>."""
|
68 |
-
elif len(
|
69 |
#topwear, bottomwear = wears[0], wears[1]
|
70 |
text = f"""A {category} wearing a Black tshirt and Olive pants, with completely white background. The {category} is in <img><|image_1|></img>. The Black tshirt is in <img><|image_2|></img>. The Olive pants is in <img><|image_3|></img>."""
|
71 |
else:
|
|
|
62 |
input_images = None
|
63 |
|
64 |
#wears = predict_clothing(input_images[1:])
|
65 |
+
if len(input_images)==2:
|
66 |
#dress = wears[0]
|
67 |
text = f"""A {category} wearing a dress, with completely white background. The {category} is in <img><|image_1|></img>. The dress is in <img><|image_2|></img>."""
|
68 |
+
elif len(input_images)==3:
|
69 |
#topwear, bottomwear = wears[0], wears[1]
|
70 |
text = f"""A {category} wearing a Black tshirt and Olive pants, with completely white background. The {category} is in <img><|image_1|></img>. The Black tshirt is in <img><|image_2|></img>. The Olive pants is in <img><|image_3|></img>."""
|
71 |
else:
|