Update app.py
Browse files
app.py
CHANGED
|
@@ -1116,6 +1116,7 @@ def loadColorAndCharacter(text, seshid):
|
|
| 1116 |
if tuple(idxs) not in sesh.locator_genid: sesh.locator_genid[tuple(idxs)] = gen_uid = str(time.time())
|
| 1117 |
json_data = [json.dumps({'room_type': sesh.room_type, 'item_locator_data': item_locator_data[product_pd_count[0]], 'gen_uid': sesh.locator_genid[tuple(item_locator_data[product_pd_count[0]])], 'response':responses[i], 'item': product_pd_count[0]}) for i,product_pd_count in enumerate(sesh.product_pd_counts) if product_pd_count[0] not in ['Palette', 'Living Room', 'Bedroom']]
|
| 1118 |
responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
|
|
|
|
| 1119 |
|
| 1120 |
dummy = dummy_
|
| 1121 |
|
|
|
|
| 1116 |
if tuple(idxs) not in sesh.locator_genid: sesh.locator_genid[tuple(idxs)] = gen_uid = str(time.time())
|
| 1117 |
json_data = [json.dumps({'room_type': sesh.room_type, 'item_locator_data': item_locator_data[product_pd_count[0]], 'gen_uid': sesh.locator_genid[tuple(item_locator_data[product_pd_count[0]])], 'response':responses[i], 'item': product_pd_count[0]}) for i,product_pd_count in enumerate(sesh.product_pd_counts) if product_pd_count[0] not in ['Palette', 'Living Room', 'Bedroom']]
|
| 1118 |
responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
|
| 1119 |
+
print('dump_text_gen: ', responses)
|
| 1120 |
|
| 1121 |
dummy = dummy_
|
| 1122 |
|