rr19tech commited on
Commit
8e5ceb2
·
verified ·
1 Parent(s): 6bfbb1d

Uploaded a client

Browse files
Files changed (1) hide show
  1. client.js +8 -0
client.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+
2
+ //A language model(Qwen) hosted in hugging face
3
+ import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";
4
+ //connect to the model
5
+ export const client = await Client.connect("https://rr19tech-plnb-model-smol.hf.space");
6
+ console.log(client.config);
7
+ console.log(await client.view_api());
8
+