lyric 생성 시점에 subtitle 생성하도록 DB 및 코드 변경
This commit is contained in:
1 parent
7da6ab6ec0
commit
395b4dbbfb
6 files changed
+114
-22
No files matched your search
@@ -23,7 +23,7 @@ Lyric API Schemas
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
from typing import Optional, Literal
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
@@ -42,7 +42,8 @@ class GenerateLyricRequest(BaseModel):
|
||||
"region": "군산",
|
||||
"detail_region_info": "군산 신흥동 말랭이 마을",
|
||||
"language": "Korean",
|
||||
"m_id" : 1
|
||||
"m_id" : 1,
|
||||
"orientation" : "vertical"
|
||||
}
|
||||
"""
|
||||
|
||||
@@ -54,7 +55,8 @@ class GenerateLyricRequest(BaseModel):
|
||||
"region": "군산",
|
||||
"detail_region_info": "군산 신흥동 말랭이 마을",
|
||||
"language": "Korean",
|
||||
"m_id" : 1
|
||||
"m_id" : 1,
|
||||
"orientation" : "vertical"
|
||||
}
|
||||
}
|
||||
)
|
||||
@@ -68,7 +70,11 @@ class GenerateLyricRequest(BaseModel):
|
||||
language: str = Field(
|
||||
default="Korean",
|
||||
description="가사 출력 언어 (Korean, English, Chinese, Japanese, Thai, Vietnamese)",
|
||||
)
|
||||
),
|
||||
orientation: Literal["horizontal", "vertical"] = Field(
|
||||
default="vertical",
|
||||
description="영상 방향 (horizontal: 가로형, vertical: 세로형)",
|
||||
),
|
||||
m_id : Optional[int] = Field(None, description="마케팅 인텔리전스 ID 값")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user