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-5/

{
  "context": "This evaluation assesses proficiency in using the @gradio/client package for Hugging Face Space duplication with hardware configuration. It focuses on the correct usage of the Client.duplicate() method and its configuration options for managing space hardware, privacy, and timeout settings.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Client.duplicate() Usage",
      "description": "Uses the Client.duplicate() static method to duplicate a Hugging Face Space",
      "max_score": 25
    },
    {
      "name": "Authentication Token",
      "description": "Correctly passes the Hugging Face API token (hf_token parameter) to the duplicate() method for authentication",
      "max_score": 15
    },
    {
      "name": "Space Reference",
      "description": "Correctly specifies the source space reference and target space name parameters in the duplicate() call",
      "max_score": 15
    },
    {
      "name": "Hardware Configuration",
      "description": "Uses the hardware parameter in duplicate() to specify hardware tier (e.g., 'a10g-small', 't4-medium', etc.)",
      "max_score": 20
    },
    {
      "name": "Privacy Setting",
      "description": "Uses the private parameter in duplicate() to control whether the duplicated space is public or private",
      "max_score": 10
    },
    {
      "name": "Timeout Configuration",
      "description": "Uses the timeout parameter in duplicate() to set sleep timeout for cost management",
      "max_score": 10
    },
    {
      "name": "Return Value Handling",
      "description": "Properly handles the returned Client instance from duplicate() and extracts relevant information (space reference, connection status, etc.)",
      "max_score": 5
    }
  ]
}

tile.json