Spaces:
Paused
Paused
Updated the method
Browse files- pb_hooks/ping_api.js +2 -2
pb_hooks/ping_api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
module.exports = {
|
| 3 |
invokeGradioSpace: function() {
|
| 4 |
|
| 5 |
-
const url = `https://rr19tech-my-proxy.hf.space/api/predict`;
|
| 6 |
|
| 7 |
// 2. Prepare your payload based on the Gradio "Use via API" schema
|
| 8 |
const payload = {
|
|
@@ -15,7 +15,7 @@ module.exports = {
|
|
| 15 |
// 3. Make the synchronous HTTP request via PocketBase global $http
|
| 16 |
const res = $http.send({
|
| 17 |
url: url,
|
| 18 |
-
method: "
|
| 19 |
body: JSON.stringify(payload),
|
| 20 |
headers: {
|
| 21 |
"content-type": "application/json",
|
|
|
|
| 2 |
module.exports = {
|
| 3 |
invokeGradioSpace: function() {
|
| 4 |
|
| 5 |
+
const url = `https://rr19tech-my-proxy.hf.space/api/predict/call_private_api`;
|
| 6 |
|
| 7 |
// 2. Prepare your payload based on the Gradio "Use via API" schema
|
| 8 |
const payload = {
|
|
|
|
| 15 |
// 3. Make the synchronous HTTP request via PocketBase global $http
|
| 16 |
const res = $http.send({
|
| 17 |
url: url,
|
| 18 |
+
method: "GET",
|
| 19 |
body: JSON.stringify(payload),
|
| 20 |
headers: {
|
| 21 |
"content-type": "application/json",
|