Spaces:
Runtime error
Runtime error
Clémentine
commited on
Commit
·
50df158
1
Parent(s):
f982b8e
simplified calls
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 |
|
|
@@ -34,7 +34,7 @@ from src.submission.submit import add_new_eval
|
|
| 34 |
subprocess.run(["python", "scripts/fix_harness_import.py"])
|
| 35 |
|
| 36 |
def restart_space():
|
| 37 |
-
API.restart_space(repo_id=REPO_ID
|
| 38 |
|
| 39 |
def launch_backend():
|
| 40 |
_ = subprocess.run(["python", "main_backend.py"])
|
|
|
|
| 26 |
WeightType,
|
| 27 |
Precision
|
| 28 |
)
|
| 29 |
+
from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, 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 |
|
|
|
|
| 34 |
subprocess.run(["python", "scripts/fix_harness_import.py"])
|
| 35 |
|
| 36 |
def restart_space():
|
| 37 |
+
API.restart_space(repo_id=REPO_ID)
|
| 38 |
|
| 39 |
def launch_backend():
|
| 40 |
_ = subprocess.run(["python", "main_backend.py"])
|