PurePolyglot / list_hf_files.py
github-actions[bot]
Automated deployment to Hugging Face
160aacb
Raw
History Blame Contribute Delete
293 Bytes
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)