Fiqa commited on
Commit
6c3b8ac
·
verified ·
1 Parent(s): 4878b0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 design of a 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
 
 
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