Fiqa commited on
Commit
622764d
·
verified ·
1 Parent(s): 5a33899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- prompt = f"Design a high-quality, stylish clothing item that seamlessly blends the essence of {caption1} and {caption2}. The design should prominently feature {f}{d} and incorporate {p}. The final piece should exude sophistication and creativity, suitable for modern trends while retaining an element of timeless appeal. Ensure the textures and patterns complement each other harmoniously, creating a visually striking yet wearable garment."
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