Spaces:
Running
Running
| import os | |
| from huggingface_hub import HfApi | |
| # Use the token from the user's config | |
| import dotenv | |
| dotenv.load_dotenv() | |
| token = os.environ.get("HF_TOKEN") | |
| api = HfApi(token=token) | |
| files = api.list_repo_files(repo_id='toecm/PureChain_Dataset', repo_type='dataset') | |
| for f in files: | |
| print(f) | |