bigghuggs commited on
Commit
fd419e9
·
verified ·
1 Parent(s): f227dbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1776,7 +1776,7 @@ def selectScript(evt: gr.SelectData, seshid):
1776
  #frmt_id_maps[formats[i]]
1777
  url = 'https://dreamdemo.pythonanywhere.com/query_textgen'
1778
  #item_locator_data = [tuple(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']]
1779
- valid_data = {'item_locator_data': item_locator_data}
1780
  valid_data = {'seshid':seshid, 'genuid': frmt_id_maps[format]}
1781
  headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
1782
  r = requests.post(url, data=json.dumps(valid_data), headers=headers)
 
1776
  #frmt_id_maps[formats[i]]
1777
  url = 'https://dreamdemo.pythonanywhere.com/query_textgen'
1778
  #item_locator_data = [tuple(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']]
1779
+ #valid_data = {'item_locator_data': item_locator_data}
1780
  valid_data = {'seshid':seshid, 'genuid': frmt_id_maps[format]}
1781
  headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
1782
  r = requests.post(url, data=json.dumps(valid_data), headers=headers)