File size: 414 Bytes
94d5fc0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}/`
  );
});