Spaces:
Running
Running
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] |