Spaces:
Sleeping
Sleeping
chips
commited on
Commit
·
408480e
1
Parent(s):
c14c511
prompt changes
Browse files- app/core/prompts.py +4 -4
app/core/prompts.py
CHANGED
|
@@ -34,17 +34,17 @@ EXTRACT_INFO_STATS = (
|
|
| 34 |
|
| 35 |
EXTRACT_INFO_HUMAN = (
|
| 36 |
"""I have a schema for extracting attributes from images of products. It's pasted below. For each of the allowed values, in each of the attributes, assign a percentage of certainty that the product fits with that value.
|
| 37 |
-
I have attached images of the product.
|
| 38 |
schema =
|
| 39 |
"Length": {
|
| 40 |
-
"description": "Length of dress",
|
| 41 |
"data_type": "string",
|
| 42 |
"allowed_values": ["Maxi", "Knee Length", "Mini", "Midi"]
|
| 43 |
},
|
| 44 |
"Style": {
|
| 45 |
"description": "Select the most appropriate dress style based on the garment's silhouette, fit, structural features, and overall design. Focus on how the dress is constructed and worn: whether it is fitted or loose,
|
| 46 |
whether it has defining elements such as shirring, boning, buttons, collars, tiers, layering, or wrap ties. Ignore color, pattern, or fabric unless they directly influence the structure (e.g., stretch fabric for Bodycon).
|
| 47 |
-
Use the visual cues of the neckline, sleeves, waistline, hemline, and closure type to guide your choice. Only select one style that best captures the dominant structural or design identity of the dress.
|
| 48 |
Refer to the following definitions when uncertain:
|
| 49 |
- 'A Line': Fitted at the top and gradually flares toward the hem, forming an 'A' shape.
|
| 50 |
- 'Bodycon': Tight-fitting and figure-hugging, usually made with stretchy fabric.
|
|
@@ -96,7 +96,7 @@ schema =
|
|
| 96 |
},
|
| 97 |
|
| 98 |
"features": {
|
| 99 |
-
"description": "special features of the garment",
|
| 100 |
"data_type": "list[string]",
|
| 101 |
"allowed_values": [ "Pockets", "Lined", "Cut Out", "Backless", "None"]
|
| 102 |
},
|
|
|
|
| 34 |
|
| 35 |
EXTRACT_INFO_HUMAN = (
|
| 36 |
"""I have a schema for extracting attributes from images of products. It's pasted below. For each of the allowed values, in each of the attributes, assign a percentage of certainty that the product fits with that value.
|
| 37 |
+
I have attached images of the product. Once you have assigned a certainty to each of the attributes, re-evaluate based on the top three values to make absolutely sure you are selectling the best fit. For the attributes that can have arrays as return, select the best fitting 1-3.
|
| 38 |
schema =
|
| 39 |
"Length": {
|
| 40 |
+
"description": "Length of dress. Look for the overall visual of the dress, not just the hem lines",
|
| 41 |
"data_type": "string",
|
| 42 |
"allowed_values": ["Maxi", "Knee Length", "Mini", "Midi"]
|
| 43 |
},
|
| 44 |
"Style": {
|
| 45 |
"description": "Select the most appropriate dress style based on the garment's silhouette, fit, structural features, and overall design. Focus on how the dress is constructed and worn: whether it is fitted or loose,
|
| 46 |
whether it has defining elements such as shirring, boning, buttons, collars, tiers, layering, or wrap ties. Ignore color, pattern, or fabric unless they directly influence the structure (e.g., stretch fabric for Bodycon).
|
| 47 |
+
Use the visual cues of the neckline, sleeves, waistline, hemline, and closure type to guide your choice. For example, the placement on the body of the waistline is very important. Only select one style that best captures the dominant structural or design identity of the dress.
|
| 48 |
Refer to the following definitions when uncertain:
|
| 49 |
- 'A Line': Fitted at the top and gradually flares toward the hem, forming an 'A' shape.
|
| 50 |
- 'Bodycon': Tight-fitting and figure-hugging, usually made with stretchy fabric.
|
|
|
|
| 96 |
},
|
| 97 |
|
| 98 |
"features": {
|
| 99 |
+
"description": "special features of the garment. None, should only be returned alone. Look closely as it is hard to directly see if a dress is lined, and pockets can be hidden. so use other cues such as the weight and see-trough level of the fabric etc",
|
| 100 |
"data_type": "list[string]",
|
| 101 |
"allowed_values": [ "Pockets", "Lined", "Cut Out", "Backless", "None"]
|
| 102 |
},
|