feat(): salary prediction

This commit is contained in:
gitgernit
2025-11-22 19:06:02 +03:00
parent a06c83cb18
commit 38dbfc25ac
6 changed files with 219 additions and 46 deletions
+8 -5
View File
@@ -6,7 +6,7 @@ from fastapi import APIRouter
from pydantic import BaseModel, Field
from template_project.application.resume.entity import ResumeId
from template_project.ml.interactors.predict_salary import (
from template_project.application.resume.interactors.predict_salary import (
PredictSalaryInteractor,
PredictSalaryRequest,
VacancyInput,
@@ -82,14 +82,17 @@ class PredictSalaryResponseModel(BaseModel):
@router.post(
"/predict_salary",
summary="Predict salary",
"/predict",
summary="Predict salary and recommend skills",
description="Predict salary range and recommend skills based on resume and relevant vacancies",
responses={
200: {"description": "Salary prediction generated successfully", "model": PredictSalaryResponseModel},
200: {
"description": "Salary prediction and skills recommendation generated successfully",
"model": PredictSalaryResponseModel,
},
},
)
async def predict_salary(
async def predict(
request: PredictSalaryRequestModel,
interactor: FromDishka[PredictSalaryInteractor],
) -> PredictSalaryResponseModel: