Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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(
|
| 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(
|
| 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']
|