Spaces:
No application file
No application file
Download schema.py from AhmedKing241/ChatAppBackend: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/spaces/AhmedKing241/ChatAppBackend/resolve/main/schema.py
- Command line
-
hf download hf://spaces/AhmedKing241/ChatAppBackend/schema.py
-
curl -L -o schema.py https://huggingface.co/spaces/AhmedKing241/ChatAppBackend/resolve/main/schema.py
236 Bytes
| from pydantic import BaseModel | |
| class LoginRequest(BaseModel): | |
| email: str | |
| password: str | |
| class SignupRequest(BaseModel): | |
| username: str | |
| email: str | |
| password: str | |
| class MessageEdit(BaseModel): | |
| text: str |