Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def generate_caption_and_image(image):
|
|
55 |
inputs = {key: val.to(device) for key, val in inputs.items()}
|
56 |
out = model.generate(**inputs)
|
57 |
caption = processor.decode(out[0], skip_special_tokens=True)
|
58 |
-
prompt = f'''Create a highly realistic
|
59 |
|
60 |
|
61 |
|
|
|
55 |
inputs = {key: val.to(device) for key, val in inputs.items()}
|
56 |
out = model.generate(**inputs)
|
57 |
caption = processor.decode(out[0], skip_special_tokens=True)
|
58 |
+
prompt = f'''Create a highly realistic clothing item based on the following description: The design should reflect {caption}, featuring a highly realistic and modern piece of clothing that incorporates stylish and high-quality textures, exuding sophistication with realistic fabric lighting and fine details, subtly hinting at {selected_fabric}, with a {selected_pattern} motif and a {selected_textile_design} style.'''
|
59 |
|
60 |
|
61 |
|