bigghuggs commited on
Commit
d207df9
·
verified ·
1 Parent(s): 58e165b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -266,6 +266,8 @@ class Session():
266
  self.zipcode = '30054'
267
  self.state = 'GA'
268
  self.seshid = str(time.time())
 
 
269
 
270
 
271
  sesh = Session()
@@ -952,11 +954,12 @@ def applyStyle(evt: gr.SelectData):
952
 
953
  def roomItemClick(evt: gr.SelectData):
954
  selection = evt.value['caption'].lower()
 
955
  sesh.clicked_displayed_product = evt.value['caption']
956
  if selection == 'palette':
957
- 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))
958
  elif selection in ['living room', 'bedroom']:
959
- 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))
960
  else:
961
  try:
962
  item = evt.value['caption']
@@ -2368,7 +2371,7 @@ fnf: https://www.youtube.com/watch?v=xR_G4UOvHaI
2368
  #, delete_cache=300
2369
  with gr.Blocks(theme=gr.themes.Monochrome(), js=js_func) as demo:
2370
  #ads = gr.Image("C:\\Users\\Wayne\\Downloads\\Welcome Home.gif", show_label=False, scale=5, height=150, show_download_button=False)
2371
- ads = gr.Label("Dream Home: As Quick As A Click. As Simple As Shopping. "+str(time.time()), show_label=False)
2372
  replace = gr.Gallery(label='Replacement Items', rows=2, columns=7, visible=False)
2373
  with gr.Row(visible=False) as store_summary:
2374
  merchant_top = gr.Label(label='Merchant')
 
266
  self.zipcode = '30054'
267
  self.state = 'GA'
268
  self.seshid = str(time.time())
269
+ self.time = ''
270
+
271
 
272
 
273
  sesh = Session()
 
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']
 
2371
  #, delete_cache=300
2372
  with gr.Blocks(theme=gr.themes.Monochrome(), js=js_func) as demo:
2373
  #ads = gr.Image("C:\\Users\\Wayne\\Downloads\\Welcome Home.gif", show_label=False, scale=5, height=150, show_download_button=False)
2374
+ ads = gr.Label("Dream Home: As Quick As A Click. As Simple As Shopping. ", show_label=False)
2375
  replace = gr.Gallery(label='Replacement Items', rows=2, columns=7, visible=False)
2376
  with gr.Row(visible=False) as store_summary:
2377
  merchant_top = gr.Label(label='Merchant')