CarlosMalaga
commited on
Commit
•
1aff14a
1
Parent(s):
f13cbf8
Update app.py
Browse files
app.py
CHANGED
@@ -253,8 +253,8 @@ from huggingface_hub import HfApi, CommitScheduler
|
|
253 |
from uuid import uuid4
|
254 |
|
255 |
# Access token from environment variable
|
256 |
-
api = HfApi()
|
257 |
-
api.set_access_token(os.getenv("HF_TOKEN"))
|
258 |
|
259 |
JSON_DATASET_DIR = Path("json_demo_selected_io")
|
260 |
JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
|
@@ -265,7 +265,7 @@ scheduler = CommitScheduler(
|
|
265 |
repo_type="dataset",
|
266 |
folder_path=JSON_DATASET_DIR,
|
267 |
path_in_repo="data",
|
268 |
-
|
269 |
)
|
270 |
|
271 |
|
|
|
253 |
from uuid import uuid4
|
254 |
|
255 |
# Access token from environment variable
|
256 |
+
# api = HfApi()
|
257 |
+
# api.set_access_token(os.getenv("HF_TOKEN"))
|
258 |
|
259 |
JSON_DATASET_DIR = Path("json_demo_selected_io")
|
260 |
JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
|
|
|
265 |
repo_type="dataset",
|
266 |
folder_path=JSON_DATASET_DIR,
|
267 |
path_in_repo="data",
|
268 |
+
token=os.getenv("HF_TOKEN")
|
269 |
)
|
270 |
|
271 |
|