feat: P2V 파이프라인 연동 및 좋아요·댓글·공유 지원
- 무빙 포스터(p2v_video)·롱컷(p2v_playreel) 파이프라인과 워커, 갤러리·내 콘텐츠 노출 - 좋아요·댓글: comment/video_reaction에 p2v_playreel_id 추가, 종류별 CHECK 확장 - P2V 소프트 삭제(is_deleted), queued/running 삭제 차단 - 공개 상세·공유 OG 페이지 추가 - 삭제된 부모 댓글이 목록에서 사라지던 has_live_reply 서브쿼리 버그 수정 - 마이그레이션: migration_2026-10-15_p2v_reactions.sql
This commit is contained in:
1 parent
bb1ea12958
commit
b16d4a8f1b
126 files changed
+6921
-62
No files matched your search
@@ -0,0 +1,32 @@
|
||||
"""detect 단계 VLM 응답 스키마.
|
||||
|
||||
strict structured output 제약: 전 필드 required, 없을 수 있는 값은 `| None`.
|
||||
좌표 단위는 격자 눈금 퍼센트(0~100)다 — 정규화 좌표는 후처리에서 만든다.
|
||||
"""
|
||||
from typing import Literal
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class GridBox(BaseModel):
|
||||
x0: int
|
||||
y0: int
|
||||
x1: int
|
||||
y1: int
|
||||
text: str | None
|
||||
|
||||
|
||||
class FocalAnswer(BaseModel):
|
||||
name: str
|
||||
x: int
|
||||
y: int
|
||||
|
||||
|
||||
class DetectAnswer(BaseModel):
|
||||
festival_name: str
|
||||
title: GridBox | None
|
||||
datetime: GridBox | None
|
||||
place: GridBox | None
|
||||
logo: GridBox | None
|
||||
title_style: Literal["calligraphy", "typeset"]
|
||||
focal_points: list[FocalAnswer]
|
||||
Reference in new issue
Block a user