Spaces:
Restarting
on
CPU Upgrade
Restarting
on
CPU Upgrade
use the same H4_TOKEN for restart
Browse files
app.py
CHANGED
@@ -16,10 +16,9 @@ H4_TOKEN = os.environ.get("H4_TOKEN", None)
|
|
16 |
LMEH_REPO = "HuggingFaceH4/lmeh_evaluations"
|
17 |
IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", None))
|
18 |
|
19 |
-
api = HfApi(
|
20 |
-
|
21 |
def restart_space():
|
22 |
-
api.restart_space(repo_id="HuggingFaceH4/open_llm_leaderboard")
|
23 |
|
24 |
|
25 |
def get_all_requested_models(requested_models_dir):
|
@@ -292,7 +291,6 @@ def add_new_eval(
|
|
292 |
f.write(json.dumps(eval_entry))
|
293 |
LMEH_REPO = "HuggingFaceH4/lmeh_evaluations"
|
294 |
|
295 |
-
# api = HfApi()
|
296 |
api.upload_file(
|
297 |
path_or_fileobj=out_path,
|
298 |
path_in_repo=out_path,
|
|
|
16 |
LMEH_REPO = "HuggingFaceH4/lmeh_evaluations"
|
17 |
IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", None))
|
18 |
|
19 |
+
api = HfApi()
|
|
|
20 |
def restart_space():
|
21 |
+
api.restart_space(repo_id="HuggingFaceH4/open_llm_leaderboard", token=H4_TOKEN)
|
22 |
|
23 |
|
24 |
def get_all_requested_models(requested_models_dir):
|
|
|
291 |
f.write(json.dumps(eval_entry))
|
292 |
LMEH_REPO = "HuggingFaceH4/lmeh_evaluations"
|
293 |
|
|
|
294 |
api.upload_file(
|
295 |
path_or_fileobj=out_path,
|
296 |
path_in_repo=out_path,
|