refact: AI 서버 구조 개편에 따른 리팩토링 #108
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refact: AI 서버 구조 개편에 따른 리팩토링
📝 개요
(GotchaAI/BE-AI-SERVER#12) 의 변경사항에 따른 코드 수정 입니다.
⚙️ 구현 내용
📎 기타
기존 Spring 서버에 #62 작성되어 있던 S3 이미지 업로드 코드를 AI 서버로 옮겼습니다.
기존의 경우 원본 이미지를 Spring에서 S3로 업로드 -> 매 로직(분류, 캡션) 시마다 S3에 저장된 원본 이미지를 불러와 텍스트 마스킹(EasyOCR) 으로 전처리를 해주는 것 보다 마스킹 된 파일 자체를 AI 서버에서 바로 S3에 올려주는 것이 훨씬 효율적일 것이라 판단했습니다.
따라서 image 업로드 관련 로직은 삭제해두었습니다.
기존의
be-server-url/api/v1/image/upload로 들어오던 이미지 업로드 요청은ai-server-url/api/v1/upload로 들어와야 합니다 ! ! ! !🧪 테스트 결과