CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-gradio--client

JavaScript and TypeScript client library for interacting with Gradio APIs, providing methods to connect to, submit predictions to, and manage connections with Gradio applications.

Overall
score

96%

Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-gradio--client

tile.json