Spaces:
Paused
Paused
Updated
Browse files- pb_hooks/ping_api.js +2 -1
pb_hooks/ping_api.js
CHANGED
|
@@ -6,9 +6,10 @@ module.exports = {
|
|
| 6 |
const url = "https://rr19tech-my-proxy.hf.space";
|
| 7 |
const app = await Client.connect('https://rr19tech-my-proxy.hf.space');
|
| 8 |
const api_method = "call_private_api";
|
| 9 |
-
const userInput = "What is
|
| 10 |
const result = await app.predict(api_method, [userInput]);
|
| 11 |
// 3. Access the returned data
|
| 12 |
console.log("Result:", result.data);
|
|
|
|
| 13 |
};
|
| 14 |
|
|
|
|
| 6 |
const url = "https://rr19tech-my-proxy.hf.space";
|
| 7 |
const app = await Client.connect('https://rr19tech-my-proxy.hf.space');
|
| 8 |
const api_method = "call_private_api";
|
| 9 |
+
const userInput = "What is python"
|
| 10 |
const result = await app.predict(api_method, [userInput]);
|
| 11 |
// 3. Access the returned data
|
| 12 |
console.log("Result:", result.data);
|
| 13 |
+
return result.data;
|
| 14 |
};
|
| 15 |
|