MrAlexGov commited on
Commit
d65e3bb
·
verified ·
1 Parent(s): 8bd9f20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,7 +86,7 @@ async def root():
86
  }
87
  }
88
 
89
- @app.get("/health")
90
  async def health():
91
  """Проверка здоровья сервиса"""
92
  return {
@@ -96,7 +96,7 @@ async def health():
96
  "service": "IT Job Classifier"
97
  }
98
 
99
- @app.post("/predict", response_model=PredictionResponse)
100
  async def predict(request: TextRequest):
101
  """Классифицирует текст на IT/не IT вакансию"""
102
 
@@ -150,7 +150,7 @@ async def predict(request: TextRequest):
150
  )
151
 
152
  # Эндпоинт для тестирования
153
- @app.get("/test")
154
  async def test():
155
  """Тестовый эндпоинт"""
156
  return {
 
86
  }
87
  }
88
 
89
+ @app.get("health")
90
  async def health():
91
  """Проверка здоровья сервиса"""
92
  return {
 
96
  "service": "IT Job Classifier"
97
  }
98
 
99
+ @app.post("predict", response_model=PredictionResponse)
100
  async def predict(request: TextRequest):
101
  """Классифицирует текст на IT/не IT вакансию"""
102
 
 
150
  )
151
 
152
  # Эндпоинт для тестирования
153
+ @app.get("test")
154
  async def test():
155
  """Тестовый эндпоинт"""
156
  return {