Spaces:
Running
Running
Download app/schemas/project.py from SolusOps/study-buddy: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/SolusOps/study-buddy/resolve/main/app/schemas/project.py
- Command line
-
hf download hf://spaces/SolusOps/study-buddy/app/schemas/project.py
-
curl -L -o project.py https://huggingface.co/spaces/SolusOps/study-buddy/resolve/main/app/schemas/project.py
608 Bytes
| from pydantic import BaseModel, Field | |
| from app.schemas.session import Intention | |
| class ProjectFile(BaseModel): | |
| filename: str | |
| file_id: str # full sha256 hex of the file bytes | |
| class Project(BaseModel): | |
| project_id: str | |
| name: str | |
| created_at: float | |
| updated_at: float | |
| files: list[ProjectFile] = Field(default_factory=list) | |
| intention: Intention = Intention.LEARN | |
| title: str = "" | |
| class ProjectDetail(Project): | |
| document_id: str = "" | |
| class ProjectUpdateRequest(BaseModel): | |
| name: str | None = None | |
| intention: Intention | None = None | |
| title: str | None = None | |