bigghuggs commited on
Commit
ae718cd
·
verified ·
1 Parent(s): 8a438ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -954,12 +954,12 @@ def applyStyle(evt: gr.SelectData):
954
 
955
  def roomItemClick(evt: gr.SelectData):
956
  selection = evt.value['caption'].lower()
957
- if not sesh.time: sesh.time = str(time.time())
958
  sesh.clicked_displayed_product = evt.value['caption']
959
  if selection == 'palette':
960
- 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.'+str(sesh.time), label='Sponsors'), gr.update(visible=bool(0))
961
  elif selection in ['living room', 'bedroom']:
962
- 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.'+str(sesh.time), 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))
963
  else:
964
  try:
965
  item = evt.value['caption']
 
954
 
955
  def roomItemClick(evt: gr.SelectData):
956
  selection = evt.value['caption'].lower()
957
+
958
  sesh.clicked_displayed_product = evt.value['caption']
959
  if selection == 'palette':
960
+ 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.'+str(time.time()), label='Sponsors'), gr.update(visible=bool(0))
961
  elif selection in ['living room', 'bedroom']:
962
+ 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.'+str(time.time()), 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))
963
  else:
964
  try:
965
  item = evt.value['caption']