Commit
·
57bc17f
1
Parent(s):
0dd08cb
change default schema
Browse files
app.py
CHANGED
@@ -126,48 +126,53 @@ sample_schema = """from pydantic import BaseModel, Field
|
|
126 |
|
127 |
|
128 |
class Length(BaseModel):
|
129 |
-
maxi: int = Field(..., description="Maxi
|
130 |
-
knee_length: int = Field(..., description="Knee
|
131 |
-
mini: int = Field(..., description="Mini dress")
|
132 |
-
midi: int = Field(..., description="Midi
|
133 |
|
134 |
|
135 |
class Style(BaseModel):
|
136 |
-
a_line: int = Field(..., description="A Line
|
137 |
-
bodycon: int = Field(..., description="Bodycon
|
138 |
-
column: int = Field(..., description="Column
|
139 |
-
shirt_dress: int = Field(..., description="Shirt Dress")
|
140 |
-
wrap_dress: int = Field(..., description="Wrap Dress")
|
141 |
-
slip: int = Field(..., description="Slip dress")
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
149 |
|
150 |
|
151 |
class SleeveLength(BaseModel):
|
152 |
-
sleeveless: int = Field(..., description="Sleeveless")
|
153 |
-
three_quarters_sleeve: int = Field(..., description="Three quarters Sleeve")
|
154 |
-
long_sleeve: int = Field(..., description="Long Sleeve")
|
155 |
-
short_sleeve: int = Field(..., description="Short Sleeve")
|
156 |
-
strapless: int = Field(..., description="Strapless")
|
157 |
|
158 |
|
159 |
class Neckline(BaseModel):
|
160 |
-
v_neck: int = Field(..., description="V Neck")
|
161 |
-
sweetheart: int = Field(..., description="Sweetheart neckline")
|
162 |
-
round_neck: int = Field(..., description="Round Neck")
|
163 |
-
halter_neck: int = Field(..., description="Halter Neck")
|
164 |
-
square_neck: int = Field(..., description="Square Neck")
|
165 |
-
high_neck: int = Field(..., description="High Neck")
|
166 |
-
crew_neck: int = Field(..., description="Crew Neck")
|
167 |
-
cowl_neck: int = Field(..., description="Cowl Neck")
|
168 |
-
turtle_neck: int = Field(..., description="Turtle Neck")
|
169 |
-
off_the_shoulder: int = Field(..., description="Off the Shoulder")
|
170 |
-
one_shoulder: int = Field(..., description="One Shoulder")
|
|
|
|
|
171 |
|
172 |
|
173 |
class Pattern(BaseModel):
|
|
|
126 |
|
127 |
|
128 |
class Length(BaseModel):
|
129 |
+
maxi: int = Field(..., description="Maxi: Dress extends to the ankles or floor.")
|
130 |
+
knee_length: int = Field(..., description="Knee Length: Dress ends around the knees.")
|
131 |
+
mini: int = Field(..., description="Mini: Short dress that ends well above the knees.")
|
132 |
+
midi: int = Field(..., description="Midi: Dress falls between the knee and ankle.")
|
133 |
|
134 |
|
135 |
class Style(BaseModel):
|
136 |
+
a_line: int = Field(..., description="A Line: Fitted at the top and gradually flares toward the hem, forming an 'A' shape.")
|
137 |
+
bodycon: int = Field(..., description="Bodycon: Tight-fitting and figure-hugging, usually made with stretchy fabric.")
|
138 |
+
column: int = Field(..., description="Column: Straight silhouette from top to bottom, with minimal shaping or flare.")
|
139 |
+
shirt_dress: int = Field(..., description="Shirt Dress: Structured like a shirt with buttons, collar, and sleeves; may include a belt.")
|
140 |
+
wrap_dress: int = Field(..., description="Wrap Dress: Features a front closure that wraps and ties at the side or back.")
|
141 |
+
slip: int = Field(..., description="Slip: Lightweight, spaghetti-strap dress with minimal structure, often bias-cut.")
|
142 |
+
smock: int = Field(..., description="Smock: Loose-fitting with gathered or shirred sections, usually on bodice or neckline.")
|
143 |
+
corset: int = Field(..., description="Corset: Structured bodice with boning or lacing that shapes the waist.")
|
144 |
+
jumper_dress: int = Field(..., description="Jumper Dress: Layered dress style similar to a pinafore, often more casual or thick-strapped.")
|
145 |
+
blazer_dress: int = Field(..., description="Blazer Dress: Tailored like a blazer or suit jacket, often double-breasted or lapelled.")
|
146 |
+
tunic: int = Field(..., description="Tunic: Loose and straight-cut, often worn short or over pants/leggings.")
|
147 |
+
asymmetric: int = Field(..., description="Asymmetric: Dress with a non-symmetrical hem, neckline, or sleeve design.")
|
148 |
+
shift: int = Field(..., description="Shift: Simple, straight dress with no defined waist, typically above the knee.")
|
149 |
+
drop_waist: int = Field(..., description="Drop waist: Waistline sits low on the hips, usually with a loose top and flared skirt.")
|
150 |
+
empire: int = Field(..., description="Empire: High waistline just below the bust, flowing skirt from there downward.")
|
151 |
+
modest: int = Field(..., description="Modest: Covers most of the body, with high neckline, long sleeves, and longer hemline.")
|
152 |
|
153 |
|
154 |
class SleeveLength(BaseModel):
|
155 |
+
sleeveless: int = Field(..., description="Sleeveless: No sleeves.")
|
156 |
+
three_quarters_sleeve: int = Field(..., description="Three quarters Sleeve: Sleeves that end between the elbow and wrist.")
|
157 |
+
long_sleeve: int = Field(..., description="Long Sleeve: Sleeves that extend to the wrist.")
|
158 |
+
short_sleeve: int = Field(..., description="Short Sleeve: Sleeves that end above the elbow.")
|
159 |
+
strapless: int = Field(..., description="Strapless: No shoulder straps or sleeves.")
|
160 |
|
161 |
|
162 |
class Neckline(BaseModel):
|
163 |
+
v_neck: int = Field(..., description="V Neck: Neckline dips down in the shape of a 'V', varying from shallow to deep.")
|
164 |
+
sweetheart: int = Field(..., description="Sweetheart: A heart-shaped neckline, often curving over the bust and dipping in the center.")
|
165 |
+
round_neck: int = Field(..., description="Round Neck: Circular neckline sitting around the base of the neck.")
|
166 |
+
halter_neck: int = Field(..., description="Halter Neck: Straps go around the neck, leaving shoulders and upper back exposed.")
|
167 |
+
square_neck: int = Field(..., description="Square Neck: Straight horizontal cut across the chest with vertical sides, forming a square.")
|
168 |
+
high_neck: int = Field(..., description="High Neck: Extends up the neck slightly but not folded like a turtle neck.")
|
169 |
+
crew_neck: int = Field(..., description="Crew Neck: High, rounded neckline that sits close to the neck.")
|
170 |
+
cowl_neck: int = Field(..., description="Cowl Neck: Draped or folded neckline that hangs in soft folds.")
|
171 |
+
turtle_neck: int = Field(..., description="Turtle Neck: High neckline that folds over and covers the neck completely.")
|
172 |
+
off_the_shoulder: int = Field(..., description="Off the Shoulder: Sits below the shoulders, exposing the shoulders and collarbone.")
|
173 |
+
one_shoulder: int = Field(..., description="One Shoulder: Covers one shoulder only, leaving the other bare.")
|
174 |
+
boat_neck: int = Field(..., description="Boat Neck: Wide, shallow neckline that runs almost horizontally from shoulder to shoulder.")
|
175 |
+
scoop_neck: int = Field(..., description="Scoop Neck: U-shaped neckline, typically deeper than a round neck.")
|
176 |
|
177 |
|
178 |
class Pattern(BaseModel):
|