Download Brain/src/model/train_model.py from ttt246/brain: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/ttt246/brain/resolve/main/Brain/src/model/train_model.py
- Command line
-
hf download hf://spaces/ttt246/brain/Brain/src/model/train_model.py
-
curl -L -o train_model.py https://huggingface.co/spaces/ttt246/brain/resolve/main/Brain/src/model/train_model.py
520 Bytes
| """train model: | |
| { | |
| "id": "String", | |
| "data": [{"page_content": "String", "timestamp": 0}], | |
| "status": "created | updated | deleted", | |
| }""" | |
| from Brain.src.model.requests.request_model import Train | |
| class TrainModel: | |
| def __init__(self, train_data: Train): | |
| self.id = train_data.id | |
| self.data = train_data.data | |
| self.status = TrainStatus.UPDATED | |
| """train status: created | updated | deleted""" | |
| class TrainStatus: | |
| CREATED = "created" | |
| UPDATED = "updated" | |
| DELETED = "deleted" | |