카페, 식당 템플릿 적용
This commit is contained in:
1 parent
76485ebbcc
commit
e53084ed17
4 files changed
+45
-19
No files matched your search
@@ -191,6 +191,7 @@ async def generate_video(
|
||||
store_address = project.detail_region_info
|
||||
brand_name = project.store_name
|
||||
region = project.region
|
||||
industry = project.industry
|
||||
|
||||
# MarketingIntel 조회
|
||||
marketing_result = await session.execute(
|
||||
@@ -357,7 +358,8 @@ async def generate_video(
|
||||
f"[generate_video] Stage 2 START - Creatomate API - task_id: {task_id}"
|
||||
)
|
||||
creatomate_service = CreatomateService(
|
||||
orientation=orientation
|
||||
orientation=orientation,
|
||||
industry=industry,
|
||||
)
|
||||
logger.debug(
|
||||
f"[generate_video] Using template_id: {creatomate_service.template_id}, (song duration: {song_duration})"
|
||||
|
||||
@@ -57,10 +57,8 @@ async def generate_creative_assets_background(
|
||||
|
||||
for attempt in range(1, max_retries + 1):
|
||||
try:
|
||||
creatomate_service = CreatomateService(orientation=orientation)
|
||||
template = await creatomate_service.get_one_template_data(creatomate_service.template_id)
|
||||
|
||||
# ── 프로젝트 / 마케팅 인텔 로드 ──────────────────────────────────
|
||||
# 템플릿 선택에 project.industry가 필요하므로 서비스 생성보다 먼저 로드
|
||||
async with BackgroundSessionLocal() as session:
|
||||
project_result = await session.execute(
|
||||
select(Project)
|
||||
@@ -74,6 +72,9 @@ async def generate_creative_assets_background(
|
||||
)
|
||||
marketing_intelligence = marketing_result.scalar_one_or_none()
|
||||
|
||||
creatomate_service = CreatomateService(orientation=orientation, industry=project.industry)
|
||||
template = await creatomate_service.get_one_template_data(creatomate_service.template_id)
|
||||
|
||||
store_address = project.detail_region_info
|
||||
customer_name = project.store_name
|
||||
language = project.language or "Korean"
|
||||
|
||||
Reference in new issue
Block a user