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

{
  "context": "This criteria evaluates how well the engineer uses @gradio/client package functions to handle gallery data structures. It focuses on proper usage of the package's file handling utilities, specifically prepare_files() for processing File arrays, and walk_and_store_blobs() for traversing nested gallery structures.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses prepare_files",
      "description": "Uses the prepare_files() function from @gradio/client to convert File array to FileData array with metadata extraction",
      "max_score": 40
    },
    {
      "name": "Handles nested structures",
      "description": "Uses walk_and_store_blobs() or similar traversal utilities from @gradio/client to process nested gallery arrays recursively",
      "max_score": 30
    },
    {
      "name": "FileData structure usage",
      "description": "Properly utilizes FileData interface/type from @gradio/client for representing processed gallery items with path, original_name, size, and mime_type",
      "max_score": 20
    },
    {
      "name": "Handles edge cases",
      "description": "Correctly handles empty arrays and maintains proper data structure format expected by @gradio/client gallery serializer",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-gradio--client

tile.json