cmahima commited on
Commit
a125d8a
·
1 Parent(s): 8adc61e
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -44,11 +44,12 @@ def pil_to_binary_mask(pil_image, threshold=0):
44
  def fetch_products(query):
45
  result= amazon_oxy.scrape_amazon(query)
46
  values = list(result.values())
 
47
  pic_and_prices = []
48
  urls = []
49
  i = 0
50
  for price, url in values:
51
- pic_and_prices.append((values[i], "$"+str(price)))
52
  i+=1
53
  urls.append(url)
54
  print(pic_and_prices)
 
44
  def fetch_products(query):
45
  result= amazon_oxy.scrape_amazon(query)
46
  values = list(result.values())
47
+ imgs=list(result.keys())
48
  pic_and_prices = []
49
  urls = []
50
  i = 0
51
  for price, url in values:
52
+ pic_and_prices.append((imgs[i], "$"+str(price)))
53
  i+=1
54
  urls.append(url)
55
  print(pic_and_prices)