Spaces:
Configuration error
Configuration error
Download index.js from khoadang31/uptime: direct link, hf CLI and curl.
- Browser
- Download file 210 Bytes
-
https://huggingface.co/spaces/khoadang31/uptime/resolve/main/index.js
- Command line
-
hf download hf://spaces/khoadang31/uptime/index.js
-
curl -L -o index.js https://huggingface.co/spaces/khoadang31/uptime/resolve/main/index.js
210 Bytes
| const cp = require('child_process'); | |
| start = () => { | |
| var child = cp.fork(__dirname + '/server.js'); | |
| child.on("close", () => { | |
| console.log("Restarting...") | |
| setTimeout(() => start(), 250) | |
| }); | |
| }; | |
| start(); |