Merge branch 'be/feat/120-autoLabeling' into 'be/develop'

Chore: AI 서버 요청 endPoint 설정

See merge request s11-s-project/S11P21S002!44
This commit is contained in:
김용수 2024-09-04 17:44:18 +09:00
commit 08b6a18e9a

View File

@ -44,7 +44,6 @@ public class LabelService {
private final RestTemplate restTemplate;
private final Gson gson;
/**
* AI SERVER 주소
*/
@ -74,7 +73,7 @@ public class LabelService {
}
private List<AutoLabelingResponse> sendRequestToApi(AutoLabelingRequest autoLabelingRequest, String apiEndpoint, int projectId) {
String url = createApiUrl("api/yolo/detection/predict");
String url = createApiUrl(apiEndpoint);
// RestTemplate을 동적으로 생성하여 사용
HttpHeaders headers = createJsonHeaders();