JavaScript and TypeScript client library for interacting with Gradio APIs, providing methods to connect to, submit predictions to, and manage connections with Gradio applications.
96
Pending
Does it follow best practices?
Impact
96%
1.11xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses the @gradio/client package to monitor Hugging Face Space status and handle automatic wake-up functionality. The focus is on proper usage of the Client.connect() method with status callbacks and authentication.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Client.connect() usage",
"description": "Uses the Client.connect() static method to establish connection to the Hugging Face Space using the space identifier",
"max_score": 25
},
{
"name": "Status callback implementation",
"description": "Properly implements and passes a status callback function (status_callback or onStatusChange parameter) to Client.connect() to receive status updates",
"max_score": 25
},
{
"name": "Authentication handling",
"description": "Correctly passes the Hugging Face API token (hf_token) to Client.connect() when authentication is provided",
"max_score": 20
},
{
"name": "Automatic wake-up",
"description": "Relies on the automatic wake-up functionality built into Client.connect() which detects and wakes sleeping spaces without manual intervention",
"max_score": 20
},
{
"name": "Status information retrieval",
"description": "Accesses and uses the status information provided by the client (e.g., client.config or status callback data) to display the current Space state",
"max_score": 10
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10