HuggingFaceImageGenerator를 프로파일 기반으로 변경하여 빈 충돌 해결
- @Profile("huggingface") 추가로 기본 프로파일에서는 비활성화
- StableDiffusionImageGenerator를 기본 구현체로 사용
- content-service 배포 오류 해결
This commit is contained in:
+3
@@ -30,9 +30,12 @@ import java.util.UUID;
|
||||
* Hugging Face Inference API 이미지 생성 서비스
|
||||
*
|
||||
* Hugging Face Inference API를 사용하여 Stable Diffusion으로 이미지 생성 (무료)
|
||||
*
|
||||
* @Profile("huggingface") - huggingface 프로파일에서만 활성화
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@org.springframework.context.annotation.Profile("huggingface")
|
||||
public class HuggingFaceImageGenerator implements GenerateImagesUseCase {
|
||||
|
||||
private final HuggingFaceApiClient huggingFaceClient;
|
||||
|
||||
Reference in New Issue
Block a user