Uploaded a client
Browse files
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 |
+
|