-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In the 2 lines listed below, a token is passed to huggingface_hub to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the None value could be sent directly to be handle by huggingface_hub. I feel that here it is working because we assume the token will never be validated.
Line 753 in 5b23f58
| token=token if token else "no-token", |
Line 1121 in 5b23f58
| token=token if token else "no-token", |
Expected results
Pass token=None to huggingface_hub.
Actual results
token="no-token" is passed.
Environment info
huggingface_hub v0.10.0dev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working