Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/pre-processing-service/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scripts/
pytest-report.xml
coverage.xml

klue_bert.onnx
token_dev_icebang5_gmail_com.pkl
credentials.json
blog_config.json
models/klue_bert.onnx
blogger/token_dev_icebang5_gmail_com.pkl
blogger/credentials.json
blogger/blog_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BloggerBlogPostAdapter(BaseBlogPostService):
현재 BaseBlogPostService 인터페이스와 호환
"""

def __init__(self, config_file="blog_config.json"):
def __init__(self, config_file="blogger/blog_config.json"):
# API 전용 서비스 (Adaptee) 먼저 초기화
self.api_service = BloggerApiService(config_file=config_file)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def authenticate_with_google_oauth(self) -> bool:
if self.authenticated:
return True

token_file = f"token_{self.current_upload_account.replace('@', '_').replace('.', '_')}.pkl"
token_file = f"blogger/token_{self.current_upload_account.replace('@', '_').replace('.', '_')}.pkl"

try:
creds = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class SimilarityAnalyzerONNX:
"""ONNX 기반 텍스트 유사도 분석기"""

def __init__(self, model_path: str = "klue_bert.onnx"):
def __init__(self, model_path: str = "models/klue_bert.onnx"):
try:
logger.info("토크나이저 로딩 중: klue/bert-base")
self.tokenizer = AutoTokenizer.from_pretrained("klue/bert-base")
Expand Down
2 changes: 1 addition & 1 deletion docker/production-fastapi/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- "80:8000"
volumes:
- ~/app/blogger:/app
- ~/app/blogger:/app/blogger
- ~/app/models:/app/models
- logs_volume:/logs
depends_on:
Expand Down
Loading