ayoub ayoub commited on
Commit
3d360d9
·
verified ·
1 Parent(s): d3d070d

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +3 -3
server.js CHANGED
@@ -1,9 +1,9 @@
1
  const http = require('http');
2
- const PORT = process.env.PORT || 3000;
3
 
4
  http.createServer((req, res) => {
5
  res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});
6
- res.end('<h1>🤖 Telegram FFmpeg Bot is running!</h1><p>This confirms the server is up.</p>');
7
  }).listen(PORT, () => {
8
- console.log(`🌐 Web server running at http://localhost:${PORT}`);
9
  });
 
1
  const http = require('http');
2
+ const PORT = process.env.PORT || 7860;
3
 
4
  http.createServer((req, res) => {
5
  res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});
6
+ res.end('<h1>🤖 Telegram FFmpeg Bot is running on Hugging Face Spaces!</h1>');
7
  }).listen(PORT, () => {
8
+ console.log(`🌐 Web server running on port ${PORT}`);
9
  });