Spaces:
Sleeping
Sleeping
Download app/models.py from Cryped-Official/cache-service: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/Cryped-Official/cache-service/resolve/main/app/models.py
- Command line
-
hf download hf://spaces/Cryped-Official/cache-service/app/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Cryped-Official/cache-service/resolve/main/app/models.py
611 Bytes
| from typing import Any, Dict, Optional | |
| from pydantic import BaseModel | |
| class CacheSetRequest(BaseModel): | |
| Dict[str, Any] | |
| class CacheGetResponse(BaseModel): | |
| hit: bool | |
| data: Optional[Dict[str, Any]] = None | |
| class CacheSetResponse(BaseModel): | |
| success: bool | |
| class CacheDeleteResponse(BaseModel): | |
| deleted: bool | |
| class CheckAllResponse(BaseModel): | |
| price: Optional[Dict[str, Any]] = None | |
| crawl: Optional[Dict[str, Any]] = None | |
| analysis: Optional[Dict[str, Any]] = None | |
| sentiment: Optional[Dict[str, Any]] = None | |
| prediction: Optional[Dict[str, Any]] = None |