Skip to content

Commit

Permalink
Allow for variation in metadata file names as per issue huggingface#7123
Browse files Browse the repository at this point in the history
  • Loading branch information
egrace479 authored Nov 7, 2024
1 parent 01f91ba commit 219b941
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datasets/data_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class EmptyDatasetError(FileNotFoundError):
METADATA_PATTERNS = [
"metadata.csv",
"**/metadata.csv",
"**/*-metadata.csv",
"**/*_metadata.csv",
"metadata.jsonl",
"**/metadata.jsonl",
] # metadata file for ImageFolder and AudioFolder
Expand Down

0 comments on commit 219b941

Please sign in to comment.