cmahima commited on
Commit
18a49c7
1 Parent(s): e62ce10

change app

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- image_gallery = gr.Gallery(label="Fetched Images")
 
 
 
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=[image_gallery, price_display, url_display])
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