From 64c3e30dd7030337f2c7121c1175bd974dce9f5b Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Wed, 27 Mar 2024 21:49:54 +0545 Subject: [PATCH] fix(async): remove async function on sync implementation --- API/main.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API/main.py b/API/main.py index 90b4fa4..895a1e6 100644 --- a/API/main.py +++ b/API/main.py @@ -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. @@ -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, diff --git a/setup.py b/setup.py index fb0224a..f8a4419 100644 --- a/setup.py +++ b/setup.py @@ -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="skshitizraj@gmail.com",