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.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill connect-argilla-to-private-hugging-face-spaceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.0 KB, 348 tokens by cl100k_base, as published. Nobody here has run it
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
api_urlpointing to the Hugging Face Space URL. - Define the
api_key(e.g., "admin.apikey" or a specific key). - Define the
hf_tokenvariable with the Hugging Face access 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
DEFAULT_API_KEYif the API key is provided as an explicit string.
Anti-Patterns
- Do not use curly quotes in Python code.
- Do not omit the
extra_headersparameter when connecting to a private space. - Do not leave placeholder values like
<TOKEN>or<URL>in the final code without instructing the user to replace them.
Triggers
- connect argilla to private hugging face space
- argilla hf space token setup
- initialize argilla with hf token
- argilla private space authorization
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.