18 lines
474 B
Python
18 lines
474 B
Python
"""스타일링 ① — 포스터에 인쇄된 글자 판독 응답 스키마
|
|
|
|
이미지 생성 모델이 한글을 다시 그리며 자모를 바꾸므로(맥주축제 → 백주축제)
|
|
읽기 잘하는 모델에 먼저 읽히고 그 문자열을 생성 프롬프트에 못 박는다.
|
|
"""
|
|
from pydantic import BaseModel
|
|
|
|
MAX_EXTRA_LINES = 3
|
|
|
|
|
|
class PosterTextAnswer(BaseModel):
|
|
title: str
|
|
slogan: str
|
|
date: str
|
|
time: str
|
|
place: str
|
|
extra: list[str]
|