File size: 787 Bytes
e98f22b
 
 
 
ab4d4f6
e98f22b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pydantic import BaseModel, Field
from typing import List

class SingleScene(BaseModel):
    text: str = Field(description="Actual Segment of text(a scene) from the complete story")
    image_prompts: List[str] = Field(
        description="""List of detailed and descriptive image prompts for the segment
        prompt format: [theme: {atmosphere/mood}] [style: {artistic/photorealistic}] [focus: {main subject}] [details: {specific elements}] [lighting: {day/night/mystic}] [perspective: {close-up/wide-angle}]"
    Example: "theme: eerie forest | style: cinematic realism | focus: abandoned cabin | details: broken windows, overgrown vines | lighting: moonlit fog | perspective: wide-angle shot"
    """
    )

class ScenesResponseSchema(BaseModel):
    scenes: List[SingleScene]