Spaces:
Running
on
Zero
Running
on
Zero
change app
Browse files
app.py
CHANGED
@@ -300,7 +300,10 @@ with image_blocks as demo:
|
|
300 |
with gr.Row():
|
301 |
prompt = gr.Textbox(placeholder="Description of garment ex) Yellow Top", show_label=False, elem_id="prompt")
|
302 |
fetch_button = gr.Button("Fetch Products")
|
303 |
-
|
|
|
|
|
|
|
304 |
price_display = gr.Textbox(label="Price of Selected Image", interactive=False)
|
305 |
url_display = gr.Textbox(label="URL of Selected Image", interactive=False)
|
306 |
with gr.Column():
|
@@ -318,7 +321,7 @@ with image_blocks as demo:
|
|
318 |
seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=42)
|
319 |
|
320 |
|
321 |
-
fetch_button.click(fn=fetch_products, inputs=prompt, outputs=[
|
322 |
|
323 |
image_gallery.select(fn=select_image, inputs=image_gallery, outputs=garm_img)
|
324 |
|
|
|
300 |
with gr.Row():
|
301 |
prompt = gr.Textbox(placeholder="Description of garment ex) Yellow Top", show_label=False, elem_id="prompt")
|
302 |
fetch_button = gr.Button("Fetch Products")
|
303 |
+
example = gr.Examples(
|
304 |
+
inputs=garm_img,
|
305 |
+
examples_per_page=8,
|
306 |
+
examples=garm_list_path)
|
307 |
price_display = gr.Textbox(label="Price of Selected Image", interactive=False)
|
308 |
url_display = gr.Textbox(label="URL of Selected Image", interactive=False)
|
309 |
with gr.Column():
|
|
|
321 |
seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=42)
|
322 |
|
323 |
|
324 |
+
fetch_button.click(fn=fetch_products, inputs=prompt, outputs=[example, price_display, url_display])
|
325 |
|
326 |
image_gallery.select(fn=select_image, inputs=image_gallery, outputs=garm_img)
|
327 |
|