Spaces:
Sleeping
Sleeping
Download server/api/models/template_model.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 818 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/server/api/models/template_model.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/server/api/models/template_model.py
-
curl -L -o template_model.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/server/api/models/template_model.py
818 Bytes
| from pydantic import BaseModel, Field | |
| from typing import Any | |
| class UpdateTemplateBody(BaseModel): | |
| """ | |
| Schema for updating templates (e.g. resume information schemas or coding configs). | |
| """ | |
| content: Any = Field( | |
| ..., | |
| description="The updated template content. This can be a structured dictionary or any arbitrary object representing template settings.", | |
| example={"work_experience": [{"company": "Google", "role": "ML Engineer"}]} | |
| ) | |
| class Config: | |
| json_schema_extra = { | |
| "example": { | |
| "content": { | |
| "personal_info": {"name": "John Doe", "email": "john@example.com"}, | |
| "skills": ["Python", "Machine Learning", "FastAPI"], | |
| "experience": [] | |
| } | |
| } | |
| } |