Spaces:
Sleeping
Sleeping
Download server.js from ReikerXx/trial: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/spaces/ReikerXx/trial/resolve/main/server.js
- Command line
-
hf download hf://spaces/ReikerXx/trial/server.js
-
curl -L -o server.js https://huggingface.co/spaces/ReikerXx/trial/resolve/main/server.js
285 Bytes
| const express = require('express'); | |
| const app = express(); | |
| const PORT = process.env.PORT || 7860; | |
| const RESPONSE_VALUE = true; | |
| app.get('/', (req, res) => { | |
| res.json({ success: RESPONSE_VALUE }); | |
| }); | |
| app.listen(PORT, () => { | |
| console.log(`Server running on port ${PORT}`); | |
| }); |