cmahima commited on
Commit
04dd147
1 Parent(s): f25289d
Files changed (2) hide show
  1. amazon_oxy.py +0 -3
  2. app.py +2 -2
amazon_oxy.py CHANGED
@@ -2,8 +2,6 @@ import requests
2
  import json
3
  import os
4
 
5
-
6
-
7
  username = os.environ.get('USERNAME')
8
  passwd = os.environ.get('PASSWORD')
9
  def scrape_amazon(search_query, n =10):
@@ -39,4 +37,3 @@ def scrape_amazon(search_query, n =10):
39
  break
40
 
41
  return final_result
42
- print(scrape_amazon("yellow top"))
 
2
  import json
3
  import os
4
 
 
 
5
  username = os.environ.get('USERNAME')
6
  passwd = os.environ.get('PASSWORD')
7
  def scrape_amazon(search_query, n =10):
 
37
  break
38
 
39
  return final_result
 
app.py CHANGED
@@ -293,7 +293,7 @@ with image_blocks as demo:
293
  with gr.Row():
294
  prompt = gr.Textbox(placeholder="Description of garment ex) Yellow Top", show_label=False, elem_id="prompt")
295
  fetch_button = gr.Button("Fetch Products")
296
- image_gallery = gr.Gallery(label="Fetched Images", input=garm_img).style(grid=[3], height="200px")
297
  price_display = gr.Textbox(label="Price of Selected Image", interactive=False)
298
  url_display = gr.Markdown()
299
  with gr.Column():
@@ -316,7 +316,7 @@ with image_blocks as demo:
316
 
317
  fetch_button.click(fn=fetch_products, inputs=prompt, outputs=[image_gallery, price_display, url_display])
318
 
319
- try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
320
 
321
 
322
 
 
293
  with gr.Row():
294
  prompt = gr.Textbox(placeholder="Description of garment ex) Yellow Top", show_label=False, elem_id="prompt")
295
  fetch_button = gr.Button("Fetch Products")
296
+ image_gallery = gr.Gallery(label="Fetched Images").style(grid=[3], height="200px")
297
  price_display = gr.Textbox(label="Price of Selected Image", interactive=False)
298
  url_display = gr.Markdown()
299
  with gr.Column():
 
316
 
317
  fetch_button.click(fn=fetch_products, inputs=prompt, outputs=[image_gallery, price_display, url_display])
318
 
319
+ try_button.click(fn=start_tryon, inputs=[imgs, image_gallery, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
320
 
321
 
322