Skip to content

Commit

Permalink
fix(async): remove async function on sync implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Mar 27, 2024
1 parent 311a8d7 commit 64c3e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions API/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def validate_checkpoint(cls, value):


@app.post("/predict/")
async def predict_api(request: PredictionRequest):
def predict_api(request: PredictionRequest):
"""
Endpoint to predict results based on specified parameters.
Expand All @@ -179,7 +179,7 @@ async def predict_api(request: PredictionRequest):
- Predicted results.
"""
# try:
predictions = await predict(
predictions = predict(
bbox=request.bbox,
model_path=request.checkpoint,
zoom_level=request.zoom_level,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="fairpredictor",
version="0.0.34",
version="0.0.35",
url="https://github.com/kshitijrajsharma/fairpredictor",
author="Kshitij Raj Sharma",
author_email="[email protected]",
Expand Down

0 comments on commit 64c3e30

Please sign in to comment.