Update app.py
Browse files
app.py
CHANGED
|
@@ -593,7 +593,7 @@ def updateItemDisplay(seshid, budget=False, pallete_change=False):
|
|
| 593 |
items = [[data[1] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']] for _ in range(len(formats))]
|
| 594 |
#json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data, 'gen_uid': i, 'responses':responses, 'items': items}) for i,fmt in enumerate(formats)]
|
| 595 |
json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data[i], 'gen_uid': i, 'items': items[i]}) for i,fmt in enumerate(formats)]
|
| 596 |
-
responses = asyncio.run(main_post(urls, headers, json_data, timeout
|
| 597 |
#responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
|
| 598 |
print('*-/*/-*-updateDisplay: dumped scriptgen_promise: ', responses)
|
| 599 |
|
|
|
|
| 593 |
items = [[data[1] for data in sesh.display_items_[sesh.current_img_signature] if data[1] not in ['Palette', 'Living Room', 'Bedroom']] for _ in range(len(formats))]
|
| 594 |
#json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data, 'gen_uid': i, 'responses':responses, 'items': items}) for i,fmt in enumerate(formats)]
|
| 595 |
json_data = [json.dumps({'video_format': fmt, 'number_of_items': number_of_items[i], 'room_type': sesh.room_type, 'item_locator_data': item_locator_data[i], 'gen_uid': i, 'items': items[i]}) for i,fmt in enumerate(formats)]
|
| 596 |
+
responses = asyncio.run(main_post(urls, headers, json_data, timeout=1))
|
| 597 |
#responses = asyncio.run(main_post(urls, headers, json_data, timeout=3))
|
| 598 |
print('*-/*/-*-updateDisplay: dumped scriptgen_promise: ', responses)
|
| 599 |
|