Spaces:
Paused
Paused
Download dto/document.py from paloliska/trykopy: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/paloliska/trykopy/resolve/main/dto/document.py
- Command line
-
hf download hf://spaces/paloliska/trykopy/dto/document.py
-
curl -L -o document.py https://huggingface.co/spaces/paloliska/trykopy/resolve/main/dto/document.py
274 Bytes
| import uuid | |
| from datetime import datetime | |
| from pydantic import BaseModel, Field | |
| class Document(BaseModel): | |
| id: str = Field(default_factory=uuid.uuid4, alias="_id") | |
| name: str = Field() | |
| text: str = Field() | |
| created: str = Field(default_factory=datetime.now) | |