Spaces:
Paused
Paused
Updated a custom script to be invoked
Browse files- pb_hooks/main.pb.js +4 -1
pb_hooks/main.pb.js
CHANGED
|
@@ -2,6 +2,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("
|
| 6 |
console.log("This runs every 30 minutes!");
|
|
|
|
|
|
|
|
|
|
| 7 |
});
|
|
|
|
| 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", "*/15 * * * *", () => {
|
| 6 |
console.log("This runs every 30 minutes!");
|
| 7 |
+
|
| 8 |
+
const gradioScript = require(`${__hooks}/ping_api.js`);
|
| 9 |
+
gradioScript.invokeGradioSpace();
|
| 10 |
});
|