Update app.py
Browse files
app.py
CHANGED
|
@@ -810,6 +810,8 @@ def productClick(evt: gr.SelectData, seshid):
|
|
| 810 |
sesh.product_idx = evt.index
|
| 811 |
product = sesh.item_data[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Paletteid][sesh.clicked_displayed_product][product_idx]
|
| 812 |
sesh.product = product
|
|
|
|
|
|
|
| 813 |
setSesh(seshid, sesh)
|
| 814 |
return gr.Label(product['store'].split('-')[0], label='Merchant')
|
| 815 |
|
|
|
|
| 810 |
sesh.product_idx = evt.index
|
| 811 |
product = sesh.item_data[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Paletteid][sesh.clicked_displayed_product][product_idx]
|
| 812 |
sesh.product = product
|
| 813 |
+
lookup_idxs = sesh.item_data_[sesh.current_img_signature][sesh.room_type][sesh.room_style][sesh.price][sesh.Paletteid][sesh.clicked_displayed_product][product_idx]
|
| 814 |
+
sesh.clicked_product_data = {'item': sesh.clicked_displayed_product, 'lookup_idxs': lookup_idxs}
|
| 815 |
setSesh(seshid, sesh)
|
| 816 |
return gr.Label(product['store'].split('-')[0], label='Merchant')
|
| 817 |
|