rr19tech commited on
Commit
80f5f8f
·
verified ·
1 Parent(s): 7b74490
Files changed (1) hide show
  1. pb_hooks/ping_api.js +2 -1
pb_hooks/ping_api.js CHANGED
@@ -10,6 +10,7 @@ module.exports = {
10
  "What is the color of the sky" // Your input string or parameters go here
11
  ]
12
  };
 
13
 
14
  try {
15
  // 3. Make the synchronous HTTP request via PocketBase global $http
@@ -17,7 +18,7 @@ module.exports = {
17
  url: url,
18
  method: "GET",
19
  body: JSON.stringify({
20
- data: [payload] // The array argument from app.predict() goes here
21
  }),
22
  headers: {
23
  "content-type": "application/json",
 
10
  "What is the color of the sky" // Your input string or parameters go here
11
  ]
12
  };
13
+ const userInput = "What is the color of the sky"
14
 
15
  try {
16
  // 3. Make the synchronous HTTP request via PocketBase global $http
 
18
  url: url,
19
  method: "GET",
20
  body: JSON.stringify({
21
+ data: [userInput] // The array argument from app.predict() goes here
22
  }),
23
  headers: {
24
  "content-type": "application/json",