Spaces:
Build error
Build error
Download src/apis/models/api_models.py from ABAO77/Triventure-AI: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/ABAO77/Triventure-AI/resolve/main/src/apis/models/api_models.py
- Command line
-
hf download hf://spaces/ABAO77/Triventure-AI/src/apis/models/api_models.py
-
curl -L -o api_models.py https://huggingface.co/spaces/ABAO77/Triventure-AI/resolve/main/src/apis/models/api_models.py
434 Bytes
| from typing import Any, Dict, List | |
| from pydantic import BaseModel, Field | |
| from typing import Annotated | |
| class WeightUpdateRequest(BaseModel): | |
| tag_indices: List[int] | |
| new_weights: List[float] | |
| metadata: Dict[str, Any] = {} | |
| class FeedbackRequest(BaseModel): | |
| destination_id: int | |
| tag_id: int | |
| rating: int # 1-5 stars | |
| class ImageSearchBody(BaseModel): | |
| base64_image: str = Field(..., title="Base64 Image String") |