Spaces:
Running on Zero
Running on Zero
Download backend/database/models.py from muhammadpriv001/Object-Intelligence-Backend: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/muhammadpriv001/Object-Intelligence-Backend/resolve/main/backend/database/models.py
- Command line
-
hf download hf://spaces/muhammadpriv001/Object-Intelligence-Backend/backend/database/models.py
-
curl -L -o models.py https://huggingface.co/spaces/muhammadpriv001/Object-Intelligence-Backend/resolve/main/backend/database/models.py
723 Bytes
| from dataclasses import dataclass | |
| from typing import List, Optional | |
| from datetime import datetime | |
| class TaughtObject: | |
| id: str | |
| name: str | |
| category: str | |
| description: str | |
| status: str = "active" | |
| created_at: str = "" | |
| image_count: int = 0 | |
| embedding_count: int = 0 | |
| class ObjectImage: | |
| id: str | |
| object_id: str | |
| file_path: str | |
| image_hash: str | |
| created_at: str = "" | |
| class ObjectEmbedding: | |
| id: str | |
| object_id: str | |
| model_name: str | |
| model_version: str | |
| embedding: List[float] | |
| created_at: str = "" | |
| class DetectionLog: | |
| id: str | |
| object_name: str | |
| detection_type: str | |
| confidence: float | |
| timestamp: str = "" | |