Download src/models/user.py from UsmanAmeen/Physical-AI-Docusaurus-Backend: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/spaces/UsmanAmeen/Physical-AI-Docusaurus-Backend/resolve/main/src/models/user.py
- Command line
-
hf download hf://spaces/UsmanAmeen/Physical-AI-Docusaurus-Backend/src/models/user.py
-
curl -L -o user.py https://huggingface.co/spaces/UsmanAmeen/Physical-AI-Docusaurus-Backend/resolve/main/src/models/user.py
346 Bytes
| from pydantic import BaseModel, EmailStr | |
| from typing import Optional, List | |
| class User(BaseModel): | |
| id: Optional[str] = None # Will be generated by the database | |
| email: EmailStr | |
| password: str # In a real app, this would be hashed | |
| software_experience: Optional[List[str]] = None | |
| hardware_experience: Optional[List[str]] = None | |