Download api/app/user/schema.py from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/app/user/schema.py
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN@3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/app/user/schema.py
-
curl -L -o schema.py https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/app/user/schema.py
274 Bytes
| from pydantic import BaseModel, EmailStr, constr | |
| class User(BaseModel): | |
| name: constr(min_length=2, max_length=50) | |
| email: EmailStr | |
| password: str | |
| class DisplayUser(BaseModel): | |
| id: int | |
| name: str | |
| email: str | |
| class Config: | |
| orm_mode = True | |