Sudipta Nayak commited on
Commit
16ced81
·
1 Parent(s): f5fb166

issue fix-5

Browse files
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -41,8 +41,8 @@ async def detect_objects(request: Request, file: UploadFile):
41
  output_file_path = f"app/static/output/{file.filename}"
42
 
43
  # Save the uploaded file
44
- with open(input_file_path, "wb") as file:
45
- file.write(file.read())
46
 
47
  print('Detect start')
48
 
 
41
  output_file_path = f"app/static/output/{file.filename}"
42
 
43
  # Save the uploaded file
44
+ with open(input_file_path, "wb") as input_file:
45
+ input_file.write(await file.read())
46
 
47
  print('Detect start')
48