Update main.py
Browse files
main.py
CHANGED
@@ -109,5 +109,5 @@ async def read_root( file: UploadFile = File(...)):
|
|
109 |
# json_data = await request.json()
|
110 |
# except error:
|
111 |
# print (error)
|
112 |
-
x = prediction(file.filename)
|
113 |
return {"filename": file.filename, "filepath": f"/app/{file.filename}","prediction()":x}
|
|
|
109 |
# json_data = await request.json()
|
110 |
# except error:
|
111 |
# print (error)
|
112 |
+
x = prediction(os.path.join("/app", file.filename))
|
113 |
return {"filename": file.filename, "filepath": f"/app/{file.filename}","prediction()":x}
|