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:
parent
ae093c0f26
commit
74c96c620d
6 changed files with 56 additions and 21 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue