diff --git a/docs/code_examples/fastapi/frame_classification.py b/docs/code_examples/fastapi/frame_classification.py index 25d43f9..39f1ebe 100644 --- a/docs/code_examples/fastapi/frame_classification.py +++ b/docs/code_examples/fastapi/frame_classification.py @@ -47,7 +47,7 @@ @app.post("/frame_classification") async def classify_frame( - frame_data: Annotated[FrameData, Form()], + frame_data: FrameData, lr: Annotated[LabelRowV2, Depends(dep_label_row)], content: Annotated[NDArray[np.uint8], Depends(dep_single_frame)], ): diff --git a/docs/code_examples/fastapi/object_classification.py b/docs/code_examples/fastapi/object_classification.py index ebf30a4..2e82df9 100644 --- a/docs/code_examples/fastapi/object_classification.py +++ b/docs/code_examples/fastapi/object_classification.py @@ -49,7 +49,7 @@ @app.post("/object_classification") async def classify_objects( - frame_data: Annotated[FrameData, Form()], + frame_data: FrameData, lr: Annotated[LabelRowV2, Depends(dep_label_row)], crops: Annotated[ list[InstanceCrop], diff --git a/docs/editor_agents/fastapi.md b/docs/editor_agents/fastapi.md index e1edb2d..560a4b1 100644 --- a/docs/editor_agents/fastapi.md +++ b/docs/editor_agents/fastapi.md @@ -49,7 +49,7 @@ app.add_middleware( @app.post("/my_agent") def my_agent( - frame_data: Annotated[FrameData, Form()], + frame_data: FrameData, label_row: Annotated[LabelRowV2, Depends(dep_label_row)], ): # ... Do your edits to the labels