Download backend/app/scenes/scene_schema.py from modventures/character-studio: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/spaces/modventures/character-studio/resolve/main/backend/app/scenes/scene_schema.py
- Command line
-
hf download hf://spaces/modventures/character-studio/backend/app/scenes/scene_schema.py
-
curl -L -o scene_schema.py https://huggingface.co/spaces/modventures/character-studio/resolve/main/backend/app/scenes/scene_schema.py
563 Bytes
| from datetime import datetime | |
| from pydantic import BaseModel, ConfigDict, Field | |
| class SceneCreate(BaseModel): | |
| name: str = Field(min_length=1, max_length=120) | |
| image_asset_id: str | |
| character_ids: list[str] = Field(min_length=2, max_length=2) | |
| prompt: str = Field( | |
| default="Two women in one scene, natural conversation and attentive listening.", | |
| max_length=4000, | |
| ) | |
| approved: bool = False | |
| class SceneRead(SceneCreate): | |
| model_config = ConfigDict(from_attributes=True) | |
| id: str | |
| created_at: datetime | |
| version: int | |