Spaces:
Paused
Paused
Download pb_hooks/main.pb.js from rr19tech/RetroPocketBaseCMS: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/rr19tech/RetroPocketBaseCMS/resolve/main/pb_hooks/main.pb.js
- Command line
-
hf download hf://spaces/rr19tech/RetroPocketBaseCMS/pb_hooks/main.pb.js
-
curl -L -o main.pb.js https://huggingface.co/spaces/rr19tech/RetroPocketBaseCMS/resolve/main/pb_hooks/main.pb.js
550 Bytes
| // pb_hooks/main.pb.js | |
| //adding a custom statement to check if things are getting picked up | |
| console.log("---> HOOKS FILE IS ALIVE AND LOADING! <---"); | |
| cronAdd("rrtech-custom", "02 * * * *", () => { | |
| console.log("This runs every 30 minutes!"); | |
| //const gradioScript = require(`${__hooks}/ping_api.js`); | |
| const gradioScript = require("./ping_api.js"); | |
| gradioScript.invokeGradioSpace(); | |
| console.log("Am I done execution"); | |
| }); | |
| //const gradioScript = require(`${__hooks}/ping_api.js`); | |
| //gradioScript.invokeGradioSpace(); | |