bigghuggs commited on
Commit
89f21d6
·
verified ·
1 Parent(s): 78a1cd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -960,9 +960,9 @@ def roomItemClick(evt: gr.SelectData):
960
 
961
  sesh.clicked_displayed_product = evt.value['caption']
962
  if selection == 'palette':
963
- 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))
964
  elif selection in ['living room', 'bedroom']:
965
- 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))
966
  else:
967
  try:
968
  item = evt.value['caption']
 
960
 
961
  sesh.clicked_displayed_product = evt.value['caption']
962
  if selection == 'palette':
963
+ 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.', label='Sponsors'), gr.update(visible=bool(0))
964
  elif selection in ['living room', 'bedroom']:
965
+ 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.', 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))
966
  else:
967
  try:
968
  item = evt.value['caption']