sasha HF staff commited on
Commit
7b249aa
·
verified ·
1 Parent(s): eeee19f

Update pause_space.py

Browse files

uploading here, maybe?

Files changed (1) hide show
  1. pause_space.py +13 -1
pause_space.py CHANGED
@@ -2,6 +2,18 @@ from huggingface_hub import HfApi
2
  import os
3
 
4
  TOKEN = os.environ.get("DEBUG")
5
-
6
  API = HfApi(token=TOKEN)
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  API.pause_space("EnergyStarAI/launch-computation-example")
 
2
  import os
3
 
4
  TOKEN = os.environ.get("DEBUG")
 
5
  API = HfApi(token=TOKEN)
6
+
7
+ RESULTS_DATASET_PATH = f"{OWNER}/requests_debug"
8
+
9
+ print("Uploading results to Dataset repo at %s" % RESULTS_DATASET_PATH)
10
+
11
+ API.upload_file(
12
+ folder_path='/optimum-benchmark/runs/',
13
+ repo_id=RESULTS_DATASET_PATH,
14
+ repo_type="dataset"
15
+ )
16
+
17
+
18
+
19
  API.pause_space("EnergyStarAI/launch-computation-example")