Create utils.py
Browse files
utils.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# utils.py
|
| 2 |
+
from huggingface_hub import list_repo_files as hf_list_repo_files
|
| 3 |
+
|
| 4 |
+
def list_repo_files(repo_id, repo_type="dataset", token=None):
|
| 5 |
+
return hf_list_repo_files(repo_id=repo_id, repo_type=repo_type, token=token)
|