Omnibus commited on
Commit
3a32f7e
·
verified ·
1 Parent(s): de2420e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -385,7 +385,7 @@ def nasa_sdo_composite(obj,size,date1,date2,ret_num):
385
  def run():
386
  out=make_tree()
387
  im_html=get_images()
388
- return out, im_html
389
  def get_date(year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2):
390
  if len(str(month1))<2: m1=0
391
  else: m1=""
@@ -557,7 +557,7 @@ with gr.Blocks() as app:
557
  with gr.Tab("SOHO Video"):
558
  soho_vid_btn=gr.Button("Load")
559
  html_vid_nasa=gr.HTML()
560
- app.load(get_time,None,[time_html,year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2])
561
 
562
  first_comp_btn.click(comp_1,None,first_comp_img)
563
  ###### Composite Images ##########
@@ -576,5 +576,6 @@ with gr.Blocks() as app:
576
  drop2.change(make_tree,[drop1,drop2],[drop3])
577
  drop3.change(make_tree,[drop1,drop2,drop3],[drop4])
578
  ######################
579
- first_btn.click(run,None,[drop1,html_im])
 
580
  app.queue(default_concurrency_limit=10).launch()
 
385
  def run():
386
  out=make_tree()
387
  im_html=get_images()
388
+ return im_html
389
  def get_date(year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2):
390
  if len(str(month1))<2: m1=0
391
  else: m1=""
 
557
  with gr.Tab("SOHO Video"):
558
  soho_vid_btn=gr.Button("Load")
559
  html_vid_nasa=gr.HTML()
560
+ app.load(get_time,None,[time_html,year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2]).then(make_tree,None,drop1)
561
 
562
  first_comp_btn.click(comp_1,None,first_comp_img)
563
  ###### Composite Images ##########
 
576
  drop2.change(make_tree,[drop1,drop2],[drop3])
577
  drop3.change(make_tree,[drop1,drop2,drop3],[drop4])
578
  ######################
579
+ first_btn.click(run,None,[html_im])
580
+ #app.load(make_tree,None,drop1)
581
  app.queue(default_concurrency_limit=10).launch()