Feat: expose 8002 port on docker ups_predictor service

Feat: added label that shows prediction values in datagetherer index.html
This commit is contained in:
Lorenzo Iovino 2019-11-07 09:15:11 +01:00
parent ae093c0f26
commit 74c96c620d
6 changed files with 56 additions and 21 deletions

View file

@ -68,6 +68,8 @@ export class PredictorWebService {
this.app.use(bodyParser.urlencoded({ extended: false }));
this.app.post('/predict', function (req, res) {
//TODO contatta servizio python
function generateFakeResponse() {
return Array.from({length: 20}, () => Math.random().toPrecision(2));
}