Added missing inference endpoint docstring
Browse files- app/main.py +3 -1
app/main.py
CHANGED
@@ -72,7 +72,9 @@ class InferenceRequest(BaseModel):
|
|
72 |
@app.post("/inference", response_class=JSONResponse)
|
73 |
async def inference(data: InferenceRequest):
|
74 |
"""
|
75 |
-
|
|
|
|
|
76 |
|
77 |
Args:
|
78 |
data (InferenceRequest): Structure containing a list of
|
|
|
72 |
@app.post("/inference", response_class=JSONResponse)
|
73 |
async def inference(data: InferenceRequest):
|
74 |
"""
|
75 |
+
Endpoint on which you can send a list of messages that need to be
|
76 |
+
classified. A list of predictions will be returned in response,
|
77 |
+
containing for each message all of the probabilities for each label.
|
78 |
|
79 |
Args:
|
80 |
data (InferenceRequest): Structure containing a list of
|