Spaces:
Paused
Paused
Download server.js from TheFirstOython/fried: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/TheFirstOython/fried/resolve/a75205027f400aaf3b1de8a86451a465d81cb7ff/server.js
- Command line
-
hf download hf://spaces/TheFirstOython/fried@a75205027f400aaf3b1de8a86451a465d81cb7ff/server.js
-
curl -L -o server.js https://huggingface.co/spaces/TheFirstOython/fried/resolve/a75205027f400aaf3b1de8a86451a465d81cb7ff/server.js
340 Bytes
| const http = require('http'); | |
| const PORT = process.env.PORT || 7860; | |
| http.createServer((req, res) => { | |
| res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'}); | |
| res.end('<h1>🤖 Telegram FFmpeg Bot is running on Hugging Face Spaces!</h1>'); | |
| }).listen(PORT, () => { | |
| console.log(`🌐 Web server running on port ${PORT}`); | |
| }); |