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

Install with Tessl CLI

npx tessl i tessl/npm-gradio--client

tile.json