Spaces:
Paused
Paused
Updated with the API call again
Browse files- pb_hooks/main.pb.js +3 -1
pb_hooks/main.pb.js
CHANGED
|
@@ -2,8 +2,10 @@
|
|
| 2 |
//adding a custom statement to check if things are getting picked up
|
| 3 |
console.log("---> HOOKS FILE IS ALIVE AND LOADING! <---");
|
| 4 |
|
| 5 |
-
cronAdd("rrtech-custom", "*/
|
| 6 |
console.log("This runs every 30 minutes!");
|
|
|
|
|
|
|
| 7 |
});
|
| 8 |
|
| 9 |
|
|
|
|
| 2 |
//adding a custom statement to check if things are getting picked up
|
| 3 |
console.log("---> HOOKS FILE IS ALIVE AND LOADING! <---");
|
| 4 |
|
| 5 |
+
cronAdd("rrtech-custom", "*/20 * * * *", () => {
|
| 6 |
console.log("This runs every 30 minutes!");
|
| 7 |
+
const gradioScript = require(`${__hooks}/ping_api.js`);
|
| 8 |
+
gradioScript.invokeGradioSpace();
|
| 9 |
});
|
| 10 |
|
| 11 |
|