bigghuggs commited on
Commit
9ada07f
·
verified ·
1 Parent(s): 385273f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -977,7 +977,7 @@ def replaceProduct(seshid):
977
 
978
  #print('replaceProduct: ', sesh.product_idx, sesh.clicked_displayed_product, sesh.product_idx in sesh.inbudget[sesh.current_img_signature][sesh.clicked_displayed_product], sesh.display_items_, sum([float(item_product[1]['price'].replace('$', '').replace(',', '')) for img in sesh.summary for item_product in sesh.summary[img] if item_product]))
979
 
980
- if True:
981
  urls = [sesh.item_data[sesh.current_img_signature][sesh.item_data_keys[sesh.current_img_signature]['room_type']][sesh.item_data_keys[sesh.current_img_signature]['room_style']][sesh.item_data_keys[sesh.current_img_signature]['price']][sesh.item_data_keys[sesh.current_img_signature]['Paletteid']][itemidx_item[1]][itemidx_item[0]]['href'] for itemidx_item in sesh.display_items_[sesh.current_img_signature] if itemidx_item[1] not in ['Palette', 'Living Room', 'Bedroom']]
982
  sesh.responses = asyncio.run(main(urls))
983
  urls = ['https://dreamdemo.pythonanywhere.com/store_shop' for _ in range(len(urls))]
@@ -1019,7 +1019,7 @@ def replaceProduct(seshid):
1019
  #responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
1020
  else:
1021
  responses = []
1022
- print('*-/*/-*-replaceProduct: dumped scriptgen_promise: ', responses)
1023
 
1024
  setSesh(seshid, sesh)
1025
  return gr.Column(scale=5), gr.update(visible=bool(0)), gr.update(visible=bool(0)), gr.update(visible=bool(0)), gr.Label('No Item Selected', label='Merchant'), gr.Gallery(visible=False), gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.', label='Sponsors', visible=True), gr.Gallery(sesh.updated_display, label='Room Items', columns=5)
 
977
 
978
  #print('replaceProduct: ', sesh.product_idx, sesh.clicked_displayed_product, sesh.product_idx in sesh.inbudget[sesh.current_img_signature][sesh.clicked_displayed_product], sesh.display_items_, sum([float(item_product[1]['price'].replace('$', '').replace(',', '')) for img in sesh.summary for item_product in sesh.summary[img] if item_product]))
979
 
980
+ """if True:
981
  urls = [sesh.item_data[sesh.current_img_signature][sesh.item_data_keys[sesh.current_img_signature]['room_type']][sesh.item_data_keys[sesh.current_img_signature]['room_style']][sesh.item_data_keys[sesh.current_img_signature]['price']][sesh.item_data_keys[sesh.current_img_signature]['Paletteid']][itemidx_item[1]][itemidx_item[0]]['href'] for itemidx_item in sesh.display_items_[sesh.current_img_signature] if itemidx_item[1] not in ['Palette', 'Living Room', 'Bedroom']]
982
  sesh.responses = asyncio.run(main(urls))
983
  urls = ['https://dreamdemo.pythonanywhere.com/store_shop' for _ in range(len(urls))]
 
1019
  #responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
1020
  else:
1021
  responses = []
1022
+ print('*-/*/-*-replaceProduct: dumped scriptgen_promise: ', responses)"""
1023
 
1024
  setSesh(seshid, sesh)
1025
  return gr.Column(scale=5), gr.update(visible=bool(0)), gr.update(visible=bool(0)), gr.update(visible=bool(0)), gr.Label('No Item Selected', label='Merchant'), gr.Gallery(visible=False), gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.', label='Sponsors', visible=True), gr.Gallery(sesh.updated_display, label='Room Items', columns=5)