Update app.py
Browse files
app.py
CHANGED
|
@@ -624,6 +624,7 @@ def makePalettes(evt: gr.SelectData, seshid):
|
|
| 624 |
sesh.img_id = sesh.current_img_signature = evt.value['caption'] if evt.value['caption'] else sesh.current_img_signature
|
| 625 |
if sesh.current_img_signature in sesh.Palettes_displayed:
|
| 626 |
display = updateItemDisplay(seshid)
|
|
|
|
| 627 |
return sesh.Palettes_displayed[sesh.current_img_signature], sesh.img_data[sesh.current_img_signature], display
|
| 628 |
|
| 629 |
img = sesh.img_data[sesh.img_id]
|
|
@@ -658,6 +659,7 @@ def makePalettes(evt: gr.SelectData, seshid):
|
|
| 658 |
r = requests.post(url, data=json.dumps(valid_data), headers=headers)
|
| 659 |
#jsondata = r.json()
|
| 660 |
jsondata = json.loads(r.content)
|
|
|
|
| 661 |
#print('\npalette json requests response: ', str(r.content), '\njson data: ', jsondata )
|
| 662 |
|
| 663 |
|
|
|
|
| 624 |
sesh.img_id = sesh.current_img_signature = evt.value['caption'] if evt.value['caption'] else sesh.current_img_signature
|
| 625 |
if sesh.current_img_signature in sesh.Palettes_displayed:
|
| 626 |
display = updateItemDisplay(seshid)
|
| 627 |
+
print('makePalettes img sig in sesh.Palettes_displayed--returning: ', sesh.Palettes_displayed.keys())
|
| 628 |
return sesh.Palettes_displayed[sesh.current_img_signature], sesh.img_data[sesh.current_img_signature], display
|
| 629 |
|
| 630 |
img = sesh.img_data[sesh.img_id]
|
|
|
|
| 659 |
r = requests.post(url, data=json.dumps(valid_data), headers=headers)
|
| 660 |
#jsondata = r.json()
|
| 661 |
jsondata = json.loads(r.content)
|
| 662 |
+
print('makePalettes img sig was not in sesh.Palettes_displayed: ', sesh.Palettes_displayed.keys())
|
| 663 |
#print('\npalette json requests response: ', str(r.content), '\njson data: ', jsondata )
|
| 664 |
|
| 665 |
|