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