idolezal commited on
Commit
b5033ee
·
1 Parent(s): 378431a

Wait longer before `check_significance_is_reachable()` test

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
 
 
3
  import json
4
  import regex as re
5
  import gradio as gr
@@ -439,6 +440,9 @@ def check_significance_is_reachable_hook():
439
  print("Check significance is reachable.")
440
  return gr.update(active=False)
441
  else:
 
 
 
442
  restart_space()
443
 
444
  def on_application_load():
@@ -567,7 +571,7 @@ CHECKBOX_USE_CORRECTED_P_VALUE_LABEL = "FDR guarantees"
567
  def gradio_app():
568
  with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css, head=custom_js) as main:
569
  check_significance_is_reachable_timer = gr.Timer(
570
- value=60, # seconds
571
  )
572
 
573
  check_significance_is_reachable_timer.tick(
 
1
  import os
2
 
3
+ import time
4
  import json
5
  import regex as re
6
  import gradio as gr
 
440
  print("Check significance is reachable.")
441
  return gr.update(active=False)
442
  else:
443
+ print("Check significance is not reachable.")
444
+ print("Restarting in 10 seconds…")
445
+ time.sleep(10)
446
  restart_space()
447
 
448
  def on_application_load():
 
571
  def gradio_app():
572
  with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css, head=custom_js) as main:
573
  check_significance_is_reachable_timer = gr.Timer(
574
+ value=2 * 60, # seconds
575
  )
576
 
577
  check_significance_is_reachable_timer.tick(