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
Pending
Does it follow best practices?
Impact
96%
1.11xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10