Download app/seo/models.py from Hammad712/MAAS: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/spaces/Hammad712/MAAS/resolve/main/app/seo/models.py
- Command line
-
hf download hf://spaces/Hammad712/MAAS/app/seo/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Hammad712/MAAS/resolve/main/app/seo/models.py
828 Bytes
| # app/seo/models.py | |
| """ | |
| Pydantic models for SEO requests and recommendations. | |
| """ | |
| from pydantic import BaseModel, Field | |
| from typing import Any, Dict, List | |
| class SEORequest(BaseModel): | |
| """Payload for incoming SEO data.""" | |
| seo_data: Dict[str, Any] | |
| class PrioritySuggestions(BaseModel): | |
| """Categorized SEO suggestions by effort level.""" | |
| high: List[str] = Field(..., description="High-effort SEO suggestion strings.") | |
| medium: List[str] = Field(..., description="Medium-effort SEO suggestion strings.") | |
| low: List[str] = Field(..., description="Low-effort SEO suggestion strings.") | |
| class Recommendation(BaseModel): | |
| """Wrapper for prioritized SEO suggestions.""" | |
| priority_suggestions: PrioritySuggestions = Field( | |
| ..., description="All SEO suggestions categorized by effort level." | |
| ) | |