Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
|
4 |
-
def greet(description,color,features,occasion):
|
5 |
|
6 |
final = 'white background '
|
7 |
|
@@ -12,8 +12,10 @@ def greet(description,color,features,occasion):
|
|
12 |
features = ' features:' + ','.join(features)
|
13 |
|
14 |
occasion = ' occasion:' + ','.join(occasion)
|
|
|
|
|
15 |
|
16 |
-
final += description + color + features + occasion
|
17 |
|
18 |
return final
|
19 |
|
@@ -22,7 +24,7 @@ iface = gr.Interface(fn=greet,
|
|
22 |
gr.Dropdown(label='Color',choices=['Beige','Black','Blue','Brown','Green','Grey','Orange','Pink','Purple','Red','White','Yellow'],multiselect=True),
|
23 |
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),
|
24 |
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),
|
25 |
-
gr.Dropdown(label='
|
26 |
],
|
27 |
outputs="text")
|
28 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
|
4 |
+
def greet(description,color,features,occasion,type):
|
5 |
|
6 |
final = 'white background '
|
7 |
|
|
|
12 |
features = ' features:' + ','.join(features)
|
13 |
|
14 |
occasion = ' occasion:' + ','.join(occasion)
|
15 |
+
|
16 |
+
type = ' type:' + ','.join(type)
|
17 |
|
18 |
+
final += description + color + features + occasion + type
|
19 |
|
20 |
return final
|
21 |
|
|
|
24 |
gr.Dropdown(label='Color',choices=['Beige','Black','Blue','Brown','Green','Grey','Orange','Pink','Purple','Red','White','Yellow'],multiselect=True),
|
25 |
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),
|
26 |
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),
|
27 |
+
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),
|
28 |
],
|
29 |
outputs="text")
|
30 |
iface.launch()
|