diff options
author | DESKTOP-S0O2C44\ROG <ivan996sk@gmail.com> | 2022-03-16 22:45:47 +0100 |
---|---|---|
committer | DESKTOP-S0O2C44\ROG <ivan996sk@gmail.com> | 2022-03-16 22:45:47 +0100 |
commit | 5ed7414d83bacf3648a6ea194f072652bfa03b25 (patch) | |
tree | 42c4c3ce4095f4d1af5dad6d2620ef4ef9cda692 /frontend/src/app/_services | |
parent | 3541c23e1cb953f9669ec07dd6eab710ee8faf1c (diff) | |
parent | 8ac9eb2404ac00397be35fce4aee7adc1f261875 (diff) |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
Diffstat (limited to 'frontend/src/app/_services')
-rw-r--r-- | frontend/src/app/_services/models.service.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/frontend/src/app/_services/models.service.ts b/frontend/src/app/_services/models.service.ts index f85ca44e..80dc1ae3 100644 --- a/frontend/src/app/_services/models.service.ts +++ b/frontend/src/app/_services/models.service.ts @@ -14,9 +14,12 @@ export class ModelsService { constructor(private http: HttpClient, private authService: AuthService) { } addModel(model: Model) { - return this.http.post(`${API_SETTINGS.apiURL}/model/sendModel`, model, { headers: this.authService.authHeader(), responseType: 'text' }); + return this.http.post(`${API_SETTINGS.apiURL}/model/add`, model, { headers: this.authService.authHeader(), responseType: 'text' }); } addDataset(dataset: Dataset) { - return this.http.post(`${API_SETTINGS.apiURL}/model/uploadDataset`, dataset, { headers: this.authService.authHeader(), responseType: 'text' }); + return this.http.post(`${API_SETTINGS.apiURL}/dataset/add`, dataset, { headers: this.authService.authHeader(), responseType: 'text' }); + } + trainModel(modelId: string) { + return this.http.post(`${API_SETTINGS.apiURL}/model/train`, modelId, { headers: this.authService.authHeader(), responseType: 'text' }); } } |