1.0.0 • Published 1 year ago

gradio-client v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

gradio-client

Client for Gradio. Useful for AIGC.

Usage

const client = new GradioClient<{
  0: [
    [string, string, string, number, number, number], // input type
    [string, { name: string }, string], // output type
  ];
}>('wss://vits.example.com');
const result = await client.request(
  0,
  '今天晚上吃啥好呢。',
  '中文',
  '特别周',
  0.6,
  0.668,
  1.2,
);
1.0.0

1 year ago