Skip to content

Commit

Permalink
Update src/datasets/features/pdf.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Francis Soria Jimenez <andrea@huggingface.co>
  • Loading branch information
yabramuvdi and AndreaFrancis authored Dec 19, 2024
1 parent 3c214a7 commit dfef76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/features/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def cast_storage(self, storage: Union[pa.StringArray, pa.StructArray, pa.ListArr
- `pa.struct({"bytes": pa.binary()})`
- `pa.struct({"path": pa.string()})`
- `pa.struct({"bytes": pa.binary(), "path": pa.string()})` - order doesn't matter
- `pa.list(*)` - it must contain the image array data
- `pa.list(*)` - it must contain the pdf array data
Args:
storage (`Union[pa.StringArray, pa.StructArray, pa.ListArray]`):
Expand Down

0 comments on commit dfef76b

Please sign in to comment.