Download models/response.py from ahn009/Oxinto-AI: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/ahn009/Oxinto-AI/resolve/main/models/response.py
- Command line
-
hf download hf://spaces/ahn009/Oxinto-AI/models/response.py
-
curl -L -o response.py https://huggingface.co/spaces/ahn009/Oxinto-AI/resolve/main/models/response.py
1.04 kB
| from pydantic import BaseModel | |
| from typing import Optional, List, Any | |
| class ProductResult(BaseModel): | |
| id: int | |
| name: str | |
| description: str | |
| price: float | |
| category: str | |
| tags: List[str] | |
| features: List[str] | |
| score: float | |
| reason: str | |
| images: List[str] = [] | |
| class BundleInfo(BaseModel): | |
| items: List[str] | |
| original_price: float | |
| discount_percent: int | |
| total_price: float | |
| savings: float | |
| class PremiumTier(BaseModel): | |
| product: ProductResult | |
| bundle: Optional[BundleInfo] = None | |
| class TieredOffers(BaseModel): | |
| basic: List[ProductResult] | |
| intermediate: List[ProductResult] | |
| premium: Optional[PremiumTier] | |
| class RecommendResponse(BaseModel): | |
| products: List[ProductResult] | |
| total: int | |
| query: str | |
| category_detected: Optional[str] | |
| budget_detected: Optional[float] | |
| class FullRecommendResponse(BaseModel): | |
| offers: TieredOffers | |
| all_scored: List[ProductResult] | |
| class HealthResponse(BaseModel): | |
| status: str | |
| version: str | |
| products_loaded: int | |