File size: 414 Bytes
d27a461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

const { Client } = require("@gradio/client");

async function inspect() {
    try {
        const client = await Client.connect("AUXteam/tiny_factory");
        console.log("Keys:", Object.keys(client));
        if (client.view_api) {
            const api = await client.view_api();
            console.log(JSON.stringify(api, null, 2));
        }
    } catch (e) {
        console.error(e);
    }
}

inspect();