Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: raw text data for gcp #36

Merged
merged 15 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update fastapi docs to no longer use form data
frederik-encord committed Dec 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e1858aa6f3556707aa96dc355f5d4678cabdaa11
2 changes: 1 addition & 1 deletion docs/code_examples/fastapi/frame_classification.py
Original file line number Diff line number Diff line change
@@ -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)],
):
2 changes: 1 addition & 1 deletion docs/code_examples/fastapi/object_classification.py
Original file line number Diff line number Diff line change
@@ -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],
2 changes: 1 addition & 1 deletion docs/editor_agents/fastapi.md
Original file line number Diff line number Diff line change
@@ -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