Yassine Mhirsi commited on
Commit
3afc11b
·
1 Parent(s): 693c788

Add label/KPA-related schemas to models and update documentation in label routes

Browse files
Files changed (2) hide show
  1. models/__init__.py +15 -0
  2. routes/label.py +1 -1
models/__init__.py CHANGED
@@ -8,6 +8,15 @@ from .stance import (
8
  BatchStanceResponse,
9
  )
10
 
 
 
 
 
 
 
 
 
 
11
  # Import health-related schemas
12
  from .health import (
13
  HealthResponse,
@@ -19,6 +28,12 @@ __all__ = [
19
  "StanceResponse",
20
  "BatchStanceRequest",
21
  "BatchStanceResponse",
 
 
 
 
 
 
22
  # Health schemas
23
  "HealthResponse",
24
  ]
 
8
  BatchStanceResponse,
9
  )
10
 
11
+ # Import label/KPA-related schemas
12
+ from .label import (
13
+ PredictionRequest,
14
+ PredictionResponse,
15
+ BatchPredictionRequest,
16
+ BatchPredictionResponse,
17
+ HealthResponse as KPAHealthResponse,
18
+ )
19
+
20
  # Import health-related schemas
21
  from .health import (
22
  HealthResponse,
 
28
  "StanceResponse",
29
  "BatchStanceRequest",
30
  "BatchStanceResponse",
31
+ # Label/KPA schemas
32
+ "PredictionRequest",
33
+ "PredictionResponse",
34
+ "BatchPredictionRequest",
35
+ "BatchPredictionResponse",
36
+ "KPAHealthResponse",
37
  # Health schemas
38
  "HealthResponse",
39
  ]
routes/label.py CHANGED
@@ -77,7 +77,7 @@ async def predict_kpa(request: PredictionRequest):
77
  @router.post("/batch-predict", response_model=BatchPredictionResponse, tags=["KPA"])
78
  async def batch_predict_kpa(request: BatchPredictionRequest):
79
  """
80
- Predict keypointargument matching for multiple argument/keypoint pairs.
81
 
82
  - **pairs**: List of items to classify
83
 
 
77
  @router.post("/batch-predict", response_model=BatchPredictionResponse, tags=["KPA"])
78
  async def batch_predict_kpa(request: BatchPredictionRequest):
79
  """
80
+ Predict keypoint-argument matching for multiple argument/keypoint pairs.
81
 
82
  - **pairs**: List of items to classify
83