Download backend/app/conversations/conversation_model.py from modventures/character-studio: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/modventures/character-studio/resolve/main/backend/app/conversations/conversation_model.py
- Command line
-
hf download hf://spaces/modventures/character-studio/backend/app/conversations/conversation_model.py
-
curl -L -o conversation_model.py https://huggingface.co/spaces/modventures/character-studio/resolve/main/backend/app/conversations/conversation_model.py
450 Bytes
| from sqlalchemy import JSON, String, Boolean | |
| from sqlalchemy.orm import Mapped, mapped_column | |
| from app.shared.base_model import Record | |
| class Conversation(Record): | |
| __tablename__ = "conversations" | |
| title: Mapped[str] = mapped_column(String(200)) | |
| mode: Mapped[str] = mapped_column(String(20), default="scripted") | |
| turns: Mapped[list] = mapped_column(JSON, default=list) | |
| approved: Mapped[bool] = mapped_column(Boolean, default=False) | |