Spaces:
Sleeping
Sleeping
change
Browse files
app.py
CHANGED
@@ -54,10 +54,9 @@ def fetch_products(query):
|
|
54 |
urls = []
|
55 |
i = 0
|
56 |
for price, url in values:
|
57 |
-
pic_and_prices.append((imgs[i], "$"+str(price)))
|
58 |
i+=1
|
59 |
urls.append(url)
|
60 |
-
print(pic_and_prices)
|
61 |
return [pic_and_prices, urls]
|
62 |
|
63 |
base_path = 'yisol/IDM-VTON'
|
@@ -285,7 +284,7 @@ def open_link(link):
|
|
285 |
##default human
|
286 |
seafoam = Seafoam()
|
287 |
|
288 |
-
image_blocks = gr.Blocks(theme=
|
289 |
with image_blocks as demo:
|
290 |
gr.HTML("<center><h1>Sheekify ποΈπππ</h1></center>")
|
291 |
gr.HTML("<center><p>Upload an image of yourself or select from examples then describe your garment in the text box and wait for the magic. β¨</p></center>")
|
@@ -303,14 +302,14 @@ with image_blocks as demo:
|
|
303 |
examples_per_page=10,
|
304 |
examples=human_ex_list
|
305 |
)
|
306 |
-
with gr.Accordion(label="Advanced Settings", open=False):
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
|
311 |
with gr.Column():
|
312 |
prompt = gr.Textbox(placeholder="Description of garment ex: Yellow Top", show_label=False, elem_id="prompt")
|
313 |
-
fetch_button = gr.Button("
|
314 |
|
315 |
image_gallery = gr.Gallery(label="Available Products", show_label=True, elem_id="gallery"
|
316 |
, columns=[3], rows=[1], object_fit="contain", height="auto", allow_preview= False)
|
|
|
54 |
urls = []
|
55 |
i = 0
|
56 |
for price, url in values:
|
57 |
+
pic_and_prices.append((imgs[i], "$"+str(price) "on Amazon"))
|
58 |
i+=1
|
59 |
urls.append(url)
|
|
|
60 |
return [pic_and_prices, urls]
|
61 |
|
62 |
base_path = 'yisol/IDM-VTON'
|
|
|
284 |
##default human
|
285 |
seafoam = Seafoam()
|
286 |
|
287 |
+
image_blocks = gr.Blocks(theme='Tonic/indiansummer').queue()
|
288 |
with image_blocks as demo:
|
289 |
gr.HTML("<center><h1>Sheekify ποΈπππ</h1></center>")
|
290 |
gr.HTML("<center><p>Upload an image of yourself or select from examples then describe your garment in the text box and wait for the magic. β¨</p></center>")
|
|
|
302 |
examples_per_page=10,
|
303 |
examples=human_ex_list
|
304 |
)
|
305 |
+
# with gr.Accordion(label="Advanced Settings", open=False):
|
306 |
+
# with gr.Row():
|
307 |
+
# denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
308 |
+
# seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=42)
|
309 |
|
310 |
with gr.Column():
|
311 |
prompt = gr.Textbox(placeholder="Description of garment ex: Yellow Top", show_label=False, elem_id="prompt")
|
312 |
+
fetch_button = gr.Button("Find Products")
|
313 |
|
314 |
image_gallery = gr.Gallery(label="Available Products", show_label=True, elem_id="gallery"
|
315 |
, columns=[3], rows=[1], object_fit="contain", height="auto", allow_preview= False)
|