Skip to content

Commit

Permalink
style(api): fix async
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Jun 23, 2024
1 parent edb1963 commit 8192870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/routes/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


@router.post("/", status_code=status.HTTP_200_OK, summary="Perform image classification")
async def classify(file: UploadFile = File(...)) -> ClsCandidate:
def classify(file: UploadFile = File(...)) -> ClsCandidate:
"""Runs holocron vision model to analyze the input image"""
probs = classify_image(decode_image(file.file.read()))

Expand Down

0 comments on commit 8192870

Please sign in to comment.