Mohamed41 commited on
Commit
8e8f4e3
·
1 Parent(s): d708591

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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}