Spaces:
Runtime error
Runtime error
meg-huggingface
commited on
Commit
·
6c83bf5
1
Parent(s):
f470e32
Adding a create results script, to see if that can work.
Browse files- create_results.py +16 -0
create_results.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import sys
|
3 |
+
|
4 |
+
from huggingface_hub import HfApi
|
5 |
+
|
6 |
+
TOKEN = os.environ.get("DEBUG")
|
7 |
+
|
8 |
+
api = HfApi(token=TOKEN)
|
9 |
+
|
10 |
+
out_dir = sys.argv[1]
|
11 |
+
|
12 |
+
api.upload_folder(
|
13 |
+
folder_path=out_dir,
|
14 |
+
repo_id="EnergyStarAI/results_debug",
|
15 |
+
repo_type="dataset",
|
16 |
+
)
|