Maybe I don't want this to be async

This commit is contained in:
niten 2023-01-07 17:31:52 -08:00
parent 22414a4378
commit 8c6b0fa2fe
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def result_to_dict(res, base_url):
} }
@app.put("/images/") @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)) 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))
infile = open(incoming_dir / file.filename) infile = open(incoming_dir / file.filename)