From d97d1205b4f10f7f31c702a8085204228f622335 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 9 Jan 2023 10:22:57 -0800 Subject: [PATCH] ...But it doesn't work. Ugh. --- src/objectifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objectifier.py b/src/objectifier.py index 84ea028..41ab54c 100644 --- a/src/objectifier.py +++ b/src/objectifier.py @@ -109,7 +109,7 @@ def result_to_dict(res, base_url): # remove(infile) # return result_to_dict(result, base_url) -@app.put("/images") +@app.post("/images") def analyze_image(request: Request, incoming_data: bytes = File()): print("Initiating file receipt, url: " + str(request.url)) base_url = re.sub(r'\/images\/$', '/analyzed_images/', str(request.url))