Thun09 commited on
Commit
8854819
·
1 Parent(s): ed46ca3

Update space

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns
3
  import pandas as pd
 
4
  from apscheduler.schedulers.background import BackgroundScheduler
5
 
6
  from src.envs import API, REPO_ID, TOKEN
@@ -66,6 +67,9 @@ with gr.Blocks() as demo:
66
  submission_result = gr.Markdown()
67
  submit_button.click(submit, file_upload, submission_result)
68
 
 
 
 
69
  scheduler = BackgroundScheduler()
70
  scheduler.add_job(restart_space, "interval", seconds=3600)
71
  scheduler.start()
 
1
  import gradio as gr
2
  from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns
3
  import pandas as pd
4
+ import logging
5
  from apscheduler.schedulers.background import BackgroundScheduler
6
 
7
  from src.envs import API, REPO_ID, TOKEN
 
67
  submission_result = gr.Markdown()
68
  submit_button.click(submit, file_upload, submission_result)
69
 
70
+ logging.basicConfig()
71
+ logging.getLogger('apscheduler').setLevel(logging.DEBUG)
72
+
73
  scheduler = BackgroundScheduler()
74
  scheduler.add_job(restart_space, "interval", seconds=3600)
75
  scheduler.start()