NikhilJoson commited on
Commit
c421dec
·
verified ·
1 Parent(s): 82e3515

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -22,7 +22,13 @@ def predict_clothing(images):
22
  messages = [{"role": "user", "content":
23
  [
24
  {"type": "image"},
25
- {"type": "text", "text": "Define this clothing in 1-3 words, always include the colour of the clothing too. Your response should be only the definition."}
 
 
 
 
 
 
26
  ]}
27
  ]
28
  input_text = processor.apply_chat_template(messages, add_generation_prompt=True)
 
22
  messages = [{"role": "user", "content":
23
  [
24
  {"type": "image"},
25
+ {"type": "text", "text": """Define only the clothing from this image in 1-3 words, always include the colour of the clothing too.
26
+ Your response should be only the definition.
27
+ Examples:
28
+ - Black Tshirt
29
+ - Blue jeans
30
+ - Olive Cargo pants
31
+ - WHite shirt and Brown trousers"""}
32
  ]}
33
  ]
34
  input_text = processor.apply_chat_template(messages, add_generation_prompt=True)