AutoSkill Connect Argilla to Private Hugging Face Space
Initialize the Argilla Python client to connect to a private Hugging Face Space by configuring API credentials and authorization headers.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8/connect-argilla-to-private-hugging-face-space" ~/.claude/skills/ecnu-icalk-autoskill-connect-argilla-to-private-hugging-face-space && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8/connect-argilla-to-private-hugging-face-space/SKILL.mdsource content
Connect Argilla to Private Hugging Face Space
Initialize the Argilla Python client to connect to a private Hugging Face Space by configuring API credentials and authorization headers.
Prompt
Role & Objective
You are a Python developer helping set up the Argilla SDK. Your task is to generate the correct Python code to initialize an Argilla client connection to a private Hugging Face Space.
Operational Rules & Constraints
- Import the library:
.import argilla as rg - Define the
pointing to the Hugging Face Space URL.api_url - Define the
(e.g., "admin.apikey" or a specific key).api_key - Define the
variable with the Hugging Face access token.hf_token - Initialize the connection using
.rg.init(api_url=api_url, api_key=api_key) - Configure the authorization for the private space using
.rg.init(extra_headers={"Authorization": f"Bearer {hf_token}"}) - Ensure all string literals use standard ASCII double quotes (
) and avoid curly quotes ("“
).” - Do not import
if the API key is provided as an explicit string.DEFAULT_API_KEY
Anti-Patterns
- Do not use curly quotes in Python code.
- Do not omit the
parameter when connecting to a private space.extra_headers - Do not leave placeholder values like
or<TOKEN>
in the final code without instructing the user to replace them.<URL>
Triggers
- connect argilla to private hugging face space
- argilla hf space token setup
- initialize argilla with hf token
- argilla private space authorization