Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read public dataset from HuggingFace #2736

Closed
asmith26 opened this issue Aug 27, 2024 · 2 comments
Closed

Can't read public dataset from HuggingFace #2736

asmith26 opened this issue Aug 27, 2024 · 2 comments

Comments

@asmith26
Copy link
Contributor

Describe the bug
I'm trying to read the following HuggingFace dataset into Daft: https://huggingface.co/datasets/HuggingFaceM4/DocumentVQA

To Reproduce
Following https://www.getdaft.io/projects/docs/en/stable/user_guide/integrations/huggingface.html#reading-public-datasets

import daft

df = daft.read_parquet("hf://HuggingFaceM4/DocumentVQA")
df

unfortunately yields:

DaftCoreException: DaftError::External Generic http error: Invalid path: hf://HuggingFaceM4/DocumentVQA

Desktop (please complete the following information):

  • OS: Linux Mint 22 (based on Ubuntu 24.04)
  • Version: getdaft v0.3.1

Additional context
Many thanks for any help, and this amazing lib! :)

@Vince7778
Copy link
Contributor

Hello,

Seems like our docs might be slightly wrong - you may need to add /datasets/ into the URI, like hf://datasets/HuggingFaceM4/DocumentVQA.

@asmith26
Copy link
Contributor Author

Can confirm this works! Many thanks :)

import daft

df = daft.read_parquet("hf://datasets/HuggingFaceM4/DocumentVQA")

jaychia pushed a commit that referenced this issue Aug 28, 2024
Update `hf://` -> `hf://datasets/` (as per
#2736 (comment))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@asmith26 @Vince7778 and others