Spaces:
Runtime error
Runtime error
Commit
Β·
47b193f
1
Parent(s):
6601027
fix auth
Browse files
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(
|
|
|
|
|
|
|
| 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 |
|