Spaces:
Runtime error
Runtime error
Download Brain/src/model/image_model.py from thomas3737/brain_my: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/thomas3737/brain_my/resolve/main/Brain/src/model/image_model.py
- Command line
-
hf download hf://spaces/thomas3737/brain_my/Brain/src/model/image_model.py
-
curl -L -o image_model.py https://huggingface.co/spaces/thomas3737/brain_my/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} | |