Skip to content

Commit

Permalink
docs: update fastapi docs to no longer use form data
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-encord committed Dec 19, 2024
1 parent 97ee77c commit e37102b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/code_examples/fastapi/frame_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
):
Expand Down
2 changes: 1 addition & 1 deletion docs/code_examples/fastapi/object_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion docs/editor_agents/fastapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e37102b

Please sign in to comment.