Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|