broadfield-dev commited on
Commit
841e9d6
·
verified ·
1 Parent(s): 9e8ea3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -222,9 +222,10 @@ def get_time():
222
  day2=int(datestamp[2])
223
  hour2=int(timestamp[0])
224
  minute2=int(timestamp[1])
225
- return (gr.update(value=html_out),gr.update(value=year1),gr.update(value=month1),
 
226
  gr.update(value=day1),gr.update(value=hour1),gr.update(value=minute1),
227
- gr.update(value=year2),gr.update(value=month2),gr.update(value=day2),gr.update(value=hour2),gr.update(value=minute2))
228
 
229
 
230
  with gr.Blocks() as app:
@@ -254,7 +255,7 @@ with gr.Blocks() as app:
254
  html_raw=gr.HTML()
255
  links=gr.JSON()
256
 
257
- app.load(get_time,None,[time_html,year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2]).then(make_tree,None,drop1)
258
  app.load(get_time,None,[time_html]).then(make_tree,None,drop1)
259
  load_btn.click(load_json,[drop1,drop2,drop3,drop4,drop5,drop6,drop7,drop8],[html_raw,links])
260
  anim_btn.click(make_animation,[drop1,drop2,drop3,drop4,drop5,drop6,drop7,drop8,cnt],[html_raw])
 
222
  day2=int(datestamp[2])
223
  hour2=int(timestamp[0])
224
  minute2=int(timestamp[1])
225
+ return (gr.update(value=html_out)
226
+ '''return (gr.update(value=html_out),gr.update(value=year1),gr.update(value=month1),
227
  gr.update(value=day1),gr.update(value=hour1),gr.update(value=minute1),
228
+ gr.update(value=year2),gr.update(value=month2),gr.update(value=day2),gr.update(value=hour2),gr.update(value=minute2))'''
229
 
230
 
231
  with gr.Blocks() as app:
 
255
  html_raw=gr.HTML()
256
  links=gr.JSON()
257
 
258
+ #app.load(get_time,None,[time_html,year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2]).then(make_tree,None,drop1)
259
  app.load(get_time,None,[time_html]).then(make_tree,None,drop1)
260
  load_btn.click(load_json,[drop1,drop2,drop3,drop4,drop5,drop6,drop7,drop8],[html_raw,links])
261
  anim_btn.click(make_animation,[drop1,drop2,drop3,drop4,drop5,drop6,drop7,drop8,cnt],[html_raw])