Update app.py
Browse files
app.py
CHANGED
|
@@ -541,6 +541,12 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
|
|
| 541 |
#print('wrote For Store Processing: ', store)
|
| 542 |
#print('completed writing For Store Processing')
|
| 543 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
#gen_uid = str(time.time())
|
| 545 |
item_locator_data = {data[1]: sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]][data[1]][data[0]] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']}
|
| 546 |
print('item_locator_data: ', item_locator_data, '\n/*/*', [item_locator_data[product_pd_count[0]] for i,product_pd_count in enumerate(sesh.product_pd_counts)])
|
|
@@ -553,10 +559,6 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
|
|
| 553 |
responses = asyncio.run(main_post(urls, headers, json_data, timeout=.1))
|
| 554 |
print('dump_text_gen: ', responses)
|
| 555 |
|
| 556 |
-
|
| 557 |
-
sesh.updated_display = realised_display
|
| 558 |
-
summarisePerStore(seshid)
|
| 559 |
-
|
| 560 |
setSesh(seshid, sesh)
|
| 561 |
return gr.Gallery(realised_display, label='Room Items', columns=5)
|
| 562 |
else: #except:
|
|
|
|
| 541 |
#print('wrote For Store Processing: ', store)
|
| 542 |
#print('completed writing For Store Processing')
|
| 543 |
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
|
| 547 |
+
sesh.updated_display = realised_display
|
| 548 |
+
summarisePerStore(seshid)
|
| 549 |
+
|
| 550 |
#gen_uid = str(time.time())
|
| 551 |
item_locator_data = {data[1]: sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Palette_ids[sesh.current_img_signature]][data[1]][data[0]] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']}
|
| 552 |
print('item_locator_data: ', item_locator_data, '\n/*/*', [item_locator_data[product_pd_count[0]] for i,product_pd_count in enumerate(sesh.product_pd_counts)])
|
|
|
|
| 559 |
responses = asyncio.run(main_post(urls, headers, json_data, timeout=.1))
|
| 560 |
print('dump_text_gen: ', responses)
|
| 561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 562 |
setSesh(seshid, sesh)
|
| 563 |
return gr.Gallery(realised_display, label='Room Items', columns=5)
|
| 564 |
else: #except:
|