PureVersation / check_commits.py
github-actions[bot]
Automated deployment to Hugging Face
963d10b
Raw
History Blame Contribute Delete
473 Bytes
from huggingface_hub import HfApi
import pandas as pd
import io
api = HfApi()
commits = api.list_repo_commits(repo_id='toecm/IEDID', repo_type='dataset')
for c in commits:
try:
content = api.hf_hub_download(repo_id='toecm/IEDID', filename='Nigerian Pidgin English.csv', repo_type='dataset', revision=c.commit_id)
df = pd.read_csv(content)
print(f"Commit {c.commit_id} at {c.created_at}: {len(df)} rows")
except Exception as e:
pass