Update app.py
Browse files
app.py
CHANGED
@@ -84,8 +84,10 @@ def generate_caption_and_image(image, f, p, d):
|
|
84 |
inputs = {key: val.to(device) for key, val in inputs.items()}
|
85 |
out = model.generate(**inputs)
|
86 |
caption1 = processor.decode(out[0], skip_special_tokens=True)
|
|
|
|
|
87 |
|
88 |
-
|
89 |
|
90 |
|
91 |
|
|
|
84 |
inputs = {key: val.to(device) for key, val in inputs.items()}
|
85 |
out = model.generate(**inputs)
|
86 |
caption1 = processor.decode(out[0], skip_special_tokens=True)
|
87 |
+
prompt = f"Design a high-quality, stylish clothing item that flawlessly combines the essence of {caption1} and {caption2}. The design should emphasize the luxurious feel and practicality of {f} fabric, while integrating intricate {d} textual design elements. Incorporate {p} patterns that elevate the garment's aesthetic, ensuring a harmonious blend of textures and visuals. The final piece should be both sophisticated and innovative, reflecting modern trends while preserving timeless elegance. The design should be bold, wearable, and a true work of art."
|
88 |
+
|
89 |
|
90 |
+
|
91 |
|
92 |
|
93 |
|