| const express = require("express"); | |
| const app = express(); | |
| app.get("/", (req, res) => { | |
| res.json({ | |
| ok: true, | |
| msg: "hello huggingface", | |
| }); | |
| }); | |
| const port = process.env.PORT || 7860; | |
| app.listen(port, "0.0.0.0", () => { | |
| console.log("server running:", port); | |
| }); |