From 8c6b0fa2fe864d1e7b78ad10c613de1e6221a3b4 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Jan 2023 17:31:52 -0800 Subject: [PATCH] Maybe I don't want this to be async --- src/objectifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objectifier.py b/src/objectifier.py index 67f127d..d0cf2a2 100644 --- a/src/objectifier.py +++ b/src/objectifier.py @@ -90,7 +90,7 @@ def result_to_dict(res, base_url): } @app.put("/images/") -async def analyze_image(file: UploadFile, request: Request): +def analyze_image(file: UploadFile, request: Request): print("Initiating file receipt, url: " + str(request.url)) base_url = re.sub(r'\/images\/$', '/analyzed_images/', str(request.url)) infile = open(incoming_dir / file.filename)