File size: 341 Bytes
c5c7790
 
4e4a4a7
c5c7790
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
const http = require("http");

const PORT = process.env.PORT || 7860;

const server = http.createServer((req, res) => {
  res.writeHead(200, { "Content-Type": "text/plain" });
  res.end("Hello from Hugging Face Space with Node.js + Docker!\n");
});

server.listen(PORT, () => {
  console.log(`Server running at http://0.0.0.0:${PORT}/`);
});