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

Updated method call

Browse files
Files changed (1) hide show
  1. pb_hooks/ping_api.js +3 -1
pb_hooks/ping_api.js CHANGED
@@ -16,7 +16,9 @@ module.exports = {
16
  const res = $http.send({
17
  url: url,
18
  method: "GET",
19
- body: JSON.stringify(payload),
 
 
20
  headers: {
21
  "content-type": "application/json",
22
  // Keep this if your Space is private or requires authorization
 
16
  const res = $http.send({
17
  url: url,
18
  method: "GET",
19
+ body: JSON.stringify({
20
+ data: [userInput] // The array argument from app.predict() goes here
21
+ }),
22
  headers: {
23
  "content-type": "application/json",
24
  // Keep this if your Space is private or requires authorization