You've already forked RekomenciBackend
feat(): salary prediction
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user