Download api/app/auth/schema.py from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/api/app/auth/schema.py
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN/api/app/auth/schema.py
-
curl -L -o schema.py https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/api/app/auth/schema.py
252 Bytes
| from typing import Optional | |
| from pydantic import BaseModel | |
| class Login(BaseModel): | |
| username: str | |
| password: str | |
| class Token(BaseModel): | |
| access_token: str | |
| token_type: str | |
| class TokenData(BaseModel): | |
| email: Optional[str] = None | |