Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,10 @@ def generate_caption_and_image(image):
|
|
| 86 |
out = model.generate(**inputs)
|
| 87 |
caption1 = processor.decode(out[0], skip_special_tokens=True)
|
| 88 |
|
| 89 |
-
prompt = f"
|
|
|
|
| 90 |
prompt =llm(prompt)
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
|
|
|
|
| 86 |
out = model.generate(**inputs)
|
| 87 |
caption1 = processor.decode(out[0], skip_special_tokens=True)
|
| 88 |
|
| 89 |
+
prompt = f"Generate a clothing item using the following details: 1. {caption1} 2. {caption2} 3. Fabric: {selected_fabric} 4. Pattern: {selected_pattern} 5. Design Style: {selected_textile_design}. Please return only the generated prompt, enclosed in quotes."
|
| 90 |
+
|
| 91 |
prompt =llm(prompt)
|
| 92 |
+
prompt +="The image should have a clean, minimalistic grey or white background, with realistic lighting and fine details, ensuring a sophisticated and polished appearance"
|
| 93 |
|
| 94 |
|
| 95 |
|