Download server.js from Zonex999/Hust: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/Zonex999/Hust/resolve/main/server.js
- Command line
-
hf download hf://spaces/Zonex999/Hust/server.js
-
curl -L -o server.js https://huggingface.co/spaces/Zonex999/Hust/resolve/main/server.js
414 Bytes
| const express = require('express'); | |
| const app = express(); | |
| const PORT = process.env.PORT || 7860; | |
| const startTime = Date.now(); | |
| app.get('/', (req, res) => { | |
| const uptimeSeconds = Math.floor((Date.now() - startTime) / 1000); | |
| res.send(`I'm (from node yaaaa) alive for: ${uptimeSeconds} seconds`); | |
| }); | |
| app.listen(PORT, '0.0.0.0', () => { | |
| console.log(`✅ Server running on http://0.0.0.0:${PORT}`); | |
| }); |