Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -54,18 +54,14 @@ def face_swap(dest_img):
|
|
54 |
return final_image
|
55 |
|
56 |
|
57 |
-
def greet(description,color,features,occasion,type_):
|
58 |
-
|
|
|
59 |
prompt = 'white background '
|
60 |
-
|
61 |
description = 'description:' + description.replace(' ', '-')
|
62 |
-
|
63 |
color = ' color:' + ','.join(color)
|
64 |
-
|
65 |
features = ' features:' + ','.join(features)
|
66 |
-
|
67 |
occasion = ' occasion:' + ','.join(occasion)
|
68 |
-
|
69 |
type_ = ' type:' + ','.join(type_)
|
70 |
|
71 |
prompt += description + color + features + occasion + type_
|
@@ -91,6 +87,7 @@ iface = gr.Interface(fn=greet,
|
|
91 |
gr.Dropdown(label='Features',choices=['3/4-sleeve','Babydoll','Closed-Back','Corset','Crochet','Cutouts','Draped','Floral','Gloves','Halter','Lace','Long','Long-Sleeve','Midi','No-Slit','Off-The-Shoulder','One-Shoulder','Open-Back','Pockets','Print','Puff-Sleeve','Ruched','Satin','Sequins','Shimmer','Short','Short-Sleeve','Side-Slit','Square-Neck','Strapless','Sweetheart-Neck','Tight','V-Neck','Velvet','Wrap'],multiselect=True),
|
92 |
gr.Dropdown(label='Occasion',choices=['Homecoming','Casual','Wedding-Guest','Festival','Sorority','Day','Vacation','Summer','Pool-Party','Birthday','Date-Night','Party','Holiday','Winter-Formal','Valentines-Day','Prom','Graduation'],multiselect=True),
|
93 |
gr.Dropdown(label='Type',choices=['Mini-Dresses','Midi-Dresses','Maxi-Dresses','Two-Piece-Sets','Rompers','Jeans','Jumpsuits','Pants','Tops','Jumpers/Cardigans','Skirts','Shorts','Bodysuits','Swimwear'],multiselect=True),
|
|
|
94 |
],
|
95 |
outputs="image")
|
96 |
iface.launch()
|
|
|
54 |
return final_image
|
55 |
|
56 |
|
57 |
+
def greet(description,color,features,occasion,type_,face):
|
58 |
+
|
59 |
+
# Parse input
|
60 |
prompt = 'white background '
|
|
|
61 |
description = 'description:' + description.replace(' ', '-')
|
|
|
62 |
color = ' color:' + ','.join(color)
|
|
|
63 |
features = ' features:' + ','.join(features)
|
|
|
64 |
occasion = ' occasion:' + ','.join(occasion)
|
|
|
65 |
type_ = ' type:' + ','.join(type_)
|
66 |
|
67 |
prompt += description + color + features + occasion + type_
|
|
|
87 |
gr.Dropdown(label='Features',choices=['3/4-sleeve','Babydoll','Closed-Back','Corset','Crochet','Cutouts','Draped','Floral','Gloves','Halter','Lace','Long','Long-Sleeve','Midi','No-Slit','Off-The-Shoulder','One-Shoulder','Open-Back','Pockets','Print','Puff-Sleeve','Ruched','Satin','Sequins','Shimmer','Short','Short-Sleeve','Side-Slit','Square-Neck','Strapless','Sweetheart-Neck','Tight','V-Neck','Velvet','Wrap'],multiselect=True),
|
88 |
gr.Dropdown(label='Occasion',choices=['Homecoming','Casual','Wedding-Guest','Festival','Sorority','Day','Vacation','Summer','Pool-Party','Birthday','Date-Night','Party','Holiday','Winter-Formal','Valentines-Day','Prom','Graduation'],multiselect=True),
|
89 |
gr.Dropdown(label='Type',choices=['Mini-Dresses','Midi-Dresses','Maxi-Dresses','Two-Piece-Sets','Rompers','Jeans','Jumpsuits','Pants','Tops','Jumpers/Cardigans','Skirts','Shorts','Bodysuits','Swimwear'],multiselect=True),
|
90 |
+
gr.Dropdown(label='Face',choices=['Normal','Cat','Lisa','Mila']),
|
91 |
],
|
92 |
outputs="image")
|
93 |
iface.launch()
|