Download server.js from fast72/code: direct link, hf CLI and curl.
- Browser
- Download file 204 Bytes
-
https://huggingface.co/spaces/fast72/code/resolve/d6cd6d025dc78296c203ff9268ef7595670e2d2e/server.js
- Command line
-
hf download hf://spaces/fast72/code@d6cd6d025dc78296c203ff9268ef7595670e2d2e/server.js
-
curl -L -o server.js https://huggingface.co/spaces/fast72/code/resolve/d6cd6d025dc78296c203ff9268ef7595670e2d2e/server.js
204 Bytes
| const express = require('express'); | |
| const app = express(); | |
| const port = 7860; | |
| app.use(express.static('public')); | |
| app.listen(port, () => { | |
| console.log(`Server running at http://localhost:${port}`); | |
| }); |