Download Brain/src/model/sms_model.py from posix4e/brain: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/posix4e/brain/resolve/main/Brain/src/model/sms_model.py
- Command line
-
hf download hf://spaces/posix4e/brain/Brain/src/model/sms_model.py
-
curl -L -o sms_model.py https://huggingface.co/spaces/posix4e/brain/resolve/main/Brain/src/model/sms_model.py
425 Bytes
| """sms message model includes from, to and body""" | |
| from typing import Any | |
| from Brain.src.model.requests.request_model import SendSMS | |
| class SMSModel: | |
| def __init__(self, _from="", _to="", body=""): | |
| self._from = _from | |
| self._to = _to | |
| self.body = body | |
| def get_sms_model(self, data: SendSMS.Body) -> None: | |
| self._from = data._from | |
| self._to = data.to | |
| self.body = data.body | |