Spaces:
Sleeping
Sleeping
import express from 'express'; | |
import indexRoutes from './index'; | |
import config from './config'; | |
import logging from './logging'; | |
const log = logging('server'); | |
const app = express(); | |
app.use(indexRoutes); | |
const port = parseInt(config.get('server:port') || '7860', 10); | |
app.listen(port, async () => { | |
log.debug( | |
`Huggingface readme app listening on port ${port}: go to http://localhost:${port}/` | |
); | |
}); | |