andrewrreed HF staff commited on
Commit
47b193f
1 Parent(s): 6601027
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import pickle
2
 
3
  import pandas as pd
@@ -22,7 +23,9 @@ from utils import (
22
 
23
 
24
  def restart_space():
25
- HfApi().restart_space(repo_id="andrewrreed/closed-vs-open-arena-elo")
 
 
26
  print(f"Space restarted on {datetime.now()}")
27
 
28
 
 
1
+ import os
2
  import pickle
3
 
4
  import pandas as pd
 
23
 
24
 
25
  def restart_space():
26
+ HfApi(token=os.getenv("HF_TOKEN", None)).restart_space(
27
+ repo_id="andrewrreed/closed-vs-open-arena-elo"
28
+ )
29
  print(f"Space restarted on {datetime.now()}")
30
 
31