fix frontend bug

This commit is contained in:
jaehwang committed 2026-09-08 15:57:35 +09:00
1 parent a18f7a5c8b
commit 9bb46f7004
10 files changed
+83 -21

No files matched your search

+7 -2
View File
@@ -67,6 +67,9 @@ async def run_narration_text(session: AsyncSession, task: PosterAliveTask) -> No
task.narration_voice = answer.voice
task.bgm_style = answer.bgm_style.model_dump()
task.poster_metadata = answer.metadata.model_dump()
# 올릴 때 이름을 안 줬으면 포스터에서 읽은 행사명이 이름이 된다
if not task.name:
task.name = answer.metadata.event_name
task.state = PosterAliveState.MOTION
await session.commit()
@@ -131,9 +134,11 @@ async def run_render(session: AsyncSession, task: PosterAliveTask) -> None:
result = await asyncio.to_thread(render, clip, poster, narration=narration, bgm=bgm,
timeline=timeline)
task.video_url = await store_bytes(PIPELINE, task.id, "final.mp4", result.video)
task.video_url = await store_bytes(PIPELINE, task.id, "final.mp4", result.video,
download_as=f"{task.name}.mp4")
task.thumbnail_url = await store_bytes(PIPELINE, task.id, "thumbnail.jpg",
result.thumbnail)
result.thumbnail,
download_as=f"{task.name}.jpg")
task.video_duration = result.duration
task.video_frames = result.frames
task.video_width = result.width