Spaces:
Sleeping
Sleeping
Keith Bourne commited on
Commit 路
ab0f018
1
Parent(s): 99e9ffb
Add more GS code 10
Browse files
app.py
CHANGED
|
@@ -42,6 +42,10 @@ print("is none?", HF_TOKEN is None)
|
|
| 42 |
|
| 43 |
print("hfh", huggingface_hub.__version__)
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
# Create or clone a repo using Repository app.py 路 julien-c/persistent-data at main 5.
|
| 46 |
# These methods use a token HF_TOKEN which is passed as a secret from the Hub.
|
| 47 |
# Note that they also specify a local directory.
|
|
|
|
| 42 |
|
| 43 |
print("hfh", huggingface_hub.__version__)
|
| 44 |
|
| 45 |
+
repo = Repository(
|
| 46 |
+
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
# Create or clone a repo using Repository app.py 路 julien-c/persistent-data at main 5.
|
| 50 |
# These methods use a token HF_TOKEN which is passed as a secret from the Hub.
|
| 51 |
# Note that they also specify a local directory.
|