...But it doesn't work. Ugh.

This commit is contained in:
niten 2023-01-09 10:22:57 -08:00
parent c4e78898a9
commit d97d1205b4
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ def result_to_dict(res, base_url):
# remove(infile) # remove(infile)
# return result_to_dict(result, base_url) # return result_to_dict(result, base_url)
@app.put("/images") @app.post("/images")
def analyze_image(request: Request, incoming_data: bytes = File()): def analyze_image(request: Request, incoming_data: bytes = File()):
print("Initiating file receipt, url: " + str(request.url)) print("Initiating file receipt, url: " + str(request.url))
base_url = re.sub(r'\/images\/$', '/analyzed_images/', str(request.url)) base_url = re.sub(r'\/images\/$', '/analyzed_images/', str(request.url))