rr19tech commited on
Commit
705dd96
·
verified ·
1 Parent(s): 8dbbefd

Updated the method

Browse files
Files changed (1) hide show
  1. 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: "POST",
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",