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%
Build a command-line tool that connects to a Gradio application and provides detailed information about its configuration and available API endpoints.
The tool should accept a Gradio app URL or Hugging Face Space name as input and output the following information:
Provides client library for connecting to and inspecting Gradio applications.
/**
* Connects to a Gradio application and retrieves its configuration
*/
export async function inspectGradioApp(appReference: string): Promise<AppInfo>;
/**
* Information about a Gradio application
*/
export interface AppInfo {
title: string;
version: string;
mode: string;
endpoints: EndpointInfo[];
maxFileSize?: number;
}
/**
* Information about an API endpoint
*/
export interface EndpointInfo {
name: string;
parameters: ParameterInfo[];
}
/**
* Information about an endpoint parameter
*/
export interface ParameterInfo {
name: string;
type: string;
required: boolean;
default?: any;
}@generates
Install with Tessl CLI
npx tessl i tessl/npm-gradio--clientevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10