Spaces:
Sleeping
Sleeping
Download api/models.py from shivanis14/ConsumeWise: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/shivanis14/ConsumeWise/resolve/main/api/models.py
- Command line
-
hf download hf://spaces/shivanis14/ConsumeWise/api/models.py
-
curl -L -o models.py https://huggingface.co/spaces/shivanis14/ConsumeWise/resolve/main/api/models.py
278 Bytes
| # Inside models.py (create this if you don't have it) | |
| from pydantic import BaseModel | |
| from typing import Dict, Any, Optional | |
| class ServingSize(BaseModel): | |
| quantity: float | |
| class ProductInfo(BaseModel): | |
| nutritionalInformation: Dict[str, Any] | |
| servingSize: ServingSize | |