Update app.py
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def generate_caption_and_image(image):
|
|
| 113 |
|
| 114 |
prompt = f'''Create a highly realistic clothing item based on the following descriptions: The design should reflect {caption1} and {caption2}, blending both themes into a single, stylish, and modern piece of clothing. Incorporate highly realistic and high-quality textures that exude sophistication, with realistic fabric lighting and fine details. Subtly hint at {selected_fabric}, featuring a {selected_pattern} motif and a {selected_textile_design} style that harmoniously balances the essence of both captions.'''
|
| 115 |
|
| 116 |
-
|
| 117 |
|
| 118 |
# Generate image based on the caption
|
| 119 |
generated_image = pipe3(prompt).images[0]
|
|
|
|
| 113 |
|
| 114 |
prompt = f'''Create a highly realistic clothing item based on the following descriptions: The design should reflect {caption1} and {caption2}, blending both themes into a single, stylish, and modern piece of clothing. Incorporate highly realistic and high-quality textures that exude sophistication, with realistic fabric lighting and fine details. Subtly hint at {selected_fabric}, featuring a {selected_pattern} motif and a {selected_textile_design} style that harmoniously balances the essence of both captions.'''
|
| 115 |
|
| 116 |
+
|
| 117 |
|
| 118 |
# Generate image based on the caption
|
| 119 |
generated_image = pipe3(prompt).images[0]
|