docker-opencv / app.js
Javiai's picture
update hugging face port 7860
5920a85
raw
history blame
345 Bytes
const express = require('express');
const app = express();
const path = require('path');
app.use(express.static('public'));
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
});
const PORT = process.env.PORT || 7860;
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});