Maybe I don't want this to be async
This commit is contained in:
parent
22414a4378
commit
8c6b0fa2fe
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue