Skip to content

Conversation

@sabhatinas
Copy link
Contributor

@sabhatinas sabhatinas commented Nov 3, 2025

Fix the HF API call to create HF repository https://aire.gitlab-master-pages.nvidia.com/microservices/nmp/latest/nemo-microservices/latest/get-started/tutorials/customize-eval-loop.html#upload-datasets

  1. Original code
    hf_api = HfApi(endpoint=f"{NDS_URL}/v1/hf", token="")
  2. Error
    LocalProtocolError: Illegal header value b'Bearer '
    This means your HTTP request included an empty auth token, so the Authorization header became:
    Authorization: Bearer

We need to either send a valid token or skip sending a authorization token. Docs for HFAPI client mention that token has to be a valid string (https://huggingface.co/docs/huggingface_hub/en/package_reference/hf_api#huggingface_hub.HfApi.token)

@sabhatinas sabhatinas changed the title fix: add HF_TOKEN to HF API for dataset repo creation fix: [data-flywheel tool calling tutorial] Remove empty HF token in repo creation step using HF API Nov 3, 2025
@sabhatinas sabhatinas changed the title fix: [data-flywheel tool calling tutorial] Remove empty HF token in repo creation step using HF API fix: [Tutorial] [Data-flywheel Tool Calling] Remove empty HF token in repo creation step using HF API Nov 3, 2025
@shashank3959 shashank3959 self-requested a review November 4, 2025 00:02
@shashank3959 shashank3959 merged commit 749bab7 into NVIDIA:main Nov 4, 2025
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

Successfully merging this pull request may close these issues.

2 participants