Spaces:
Paused
Paused
Updated method call
Browse files- 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(
|
|
|
|
|
|
|
| 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
|