bigghuggs commited on
Commit
27d8732
·
verified ·
1 Parent(s): 52ab570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -958,12 +958,13 @@ def applyStyle(evt: gr.SelectData):
958
  def roomItemClick(evt: gr.SelectData, seshid):
959
  selection = evt.value['caption'].lower()
960
  seshidtype = '...'+str(type(seshid))+ '...'
 
961
  seshid = str(time.time()) if not seshid or seshid == 'SESHID' else seshid
962
  sesh.clicked_displayed_product = evt.value['caption']
963
  if selection == 'palette':
964
- return gr.Column(scale=4), gr.update(visible=bool(0)), gr.update(visible=bool(0)), gr.update(visible=bool(1)), gr.Gallery(visible=False), gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.' + seshidtype + seshid, label='Sponsors'), gr.update(visible=bool(0)), seshid
965
  elif selection in ['living room', 'bedroom']:
966
- return gr.Column(scale=4), gr.update(visible=bool(0)), gr.update(visible=bool(1)), gr.update(visible=bool(0)), gr.Gallery(visible=False), gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.' + seshidtype + seshid, label='Sponsors', visible=True) if sesh.summary_closed else gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.', label='Sponsors', visible=False), gr.update(visible=bool(0)) if sesh.summary_closed else gr.update(visible=bool(1)), seshid
967
  else:
968
  try:
969
  item = evt.value['caption']
 
958
  def roomItemClick(evt: gr.SelectData, seshid):
959
  selection = evt.value['caption'].lower()
960
  seshidtype = '...'+str(type(seshid))+ '...'
961
+ seshid_ = '...'+str(seshid)+ '...'
962
  seshid = str(time.time()) if not seshid or seshid == 'SESHID' else seshid
963
  sesh.clicked_displayed_product = evt.value['caption']
964
  if selection == 'palette':
965
+ return gr.Column(scale=4), gr.update(visible=bool(0)), gr.update(visible=bool(0)), gr.update(visible=bool(1)), gr.Gallery(visible=False), gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.' + seshidtype + seshid_ + seshid, label='Sponsors'), gr.update(visible=bool(0)), seshid
966
  elif selection in ['living room', 'bedroom']:
967
+ return gr.Column(scale=4), gr.update(visible=bool(0)), gr.update(visible=bool(1)), gr.update(visible=bool(0)), gr.Gallery(visible=False), gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.' + seshidtype + seshid_ + seshid, label='Sponsors', visible=True) if sesh.summary_closed else gr.Label('Dream Home: As Quick As A Click. As Simple As Shopping.', label='Sponsors', visible=False), gr.update(visible=bool(0)) if sesh.summary_closed else gr.update(visible=bool(1)), seshid
968
  else:
969
  try:
970
  item = evt.value['caption']