Spaces:
Sleeping
Sleeping
Download python_backend/src/Agents/models/Performance_model.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/models/Performance_model.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/src/Agents/models/Performance_model.py
-
curl -L -o Performance_model.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/models/Performance_model.py
1.04 kB
| from pydantic import BaseModel, Field | |
| from typing import List, Optional | |
| class Skill(BaseModel): | |
| score: Optional[int] = Field(None, ge=0, le=10) | |
| feedback: Optional[str] | |
| class Performance(BaseModel): | |
| overallScore: int = Field(..., ge=0, le=10, description="Overall performance score") | |
| verdict: str = Field(..., description="Hire decision", pattern="^(hire|maybe|reject)$") | |
| summaryFeedback: str | |
| skills: Optional[dict] = Field( | |
| default_factory=lambda: { | |
| "technical": Skill(), | |
| "dsa": Skill(), | |
| "problemSolving": Skill(), | |
| "communication": Skill(), | |
| "systemDesign": Skill(), | |
| "projects": Skill(), | |
| "behaviour": Skill(), | |
| } | |
| ) | |
| strengths: Optional[List[str]] = [] | |
| weaknesses: Optional[List[str]] = [] | |
| practiceRecommendations: Optional[List[str]] = [] | |
| studyRecommendations: Optional[List[str]] = [] | |
| lowPriorityOrAvoid: Optional[List[str]] = [] | |
| confidenceLevel: Optional[int] = Field(None, ge=0, le=10) | |