Spaces:
Sleeping
Sleeping
Download api/models/schemes.py from NAVARASA/chathur_api: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/NAVARASA/chathur_api/resolve/main/api/models/schemes.py
- Command line
-
hf download hf://spaces/NAVARASA/chathur_api/api/models/schemes.py
-
curl -L -o schemes.py https://huggingface.co/spaces/NAVARASA/chathur_api/resolve/main/api/models/schemes.py
512 Bytes
| from pydantic import BaseModel, Field | |
| from typing import List, Optional | |
| class Scheme(BaseModel): | |
| id: str = Field(..., alias="id") | |
| Title: str | |
| Description: str | |
| Eligibility: List[str] = [] | |
| Benefits: List[str] = [] | |
| ApplicationProcess: List[str] = Field(..., alias="Application Process") | |
| DocumentsRequired: List[str] = Field(..., alias="Documents Required") | |
| # Add other fields as they appear in your Firestore documents | |
| class Config: | |
| allow_population_by_field_name = True |