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.

96

1.11x
Quality

Pending

Does it follow best practices?

Impact

96%

1.11x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.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
    }
  ]
}

tile.json