Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ from src.display.utils import (
|
|
26 |
WeightType,
|
27 |
Precision
|
28 |
)
|
29 |
-
from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH,
|
30 |
from src.populate import get_evaluation_queue_df, get_leaderboard_df
|
31 |
from src.submission.submit import add_new_eval
|
32 |
from src.tools.collections import update_collections
|
@@ -38,7 +38,7 @@ from src.tools.plots import (
|
|
38 |
|
39 |
|
40 |
def restart_space():
|
41 |
-
API.restart_space(repo_id=REPO_ID, token=
|
42 |
|
43 |
try:
|
44 |
print(EVAL_REQUESTS_PATH)
|
|
|
26 |
WeightType,
|
27 |
Precision
|
28 |
)
|
29 |
+
from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, HF_TOKEN, IS_PUBLIC, QUEUE_REPO, REPO_ID, RESULTS_REPO
|
30 |
from src.populate import get_evaluation_queue_df, get_leaderboard_df
|
31 |
from src.submission.submit import add_new_eval
|
32 |
from src.tools.collections import update_collections
|
|
|
38 |
|
39 |
|
40 |
def restart_space():
|
41 |
+
API.restart_space(repo_id=REPO_ID, token=HF_TOKEN)
|
42 |
|
43 |
try:
|
44 |
print(EVAL_REQUESTS_PATH)
|