Download Brain/src/model/image_model.py from posix4e/brain: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/posix4e/brain/resolve/main/Brain/src/model/image_model.py
- Command line
-
hf download hf://spaces/posix4e/brain/Brain/src/model/image_model.py
-
curl -L -o image_model.py https://huggingface.co/spaces/posix4e/brain/resolve/main/Brain/src/model/image_model.py
393 Bytes
| """Image model to process & handle them""" | |
| from typing import Any | |
| from Brain.src.model.basic_model import DataStatus | |
| class ImageModel: | |
| def __init__(self): | |
| self.image_text = "" | |
| self.image_name = "" | |
| self.uuid = "" | |
| self.status = DataStatus.CREATED | |
| def to_json(self) -> Any: | |
| return {"image_name": self.image_name, "image_text": self.image_text} | |