Sudipta Nayak
commited on
Commit
·
16ced81
1
Parent(s):
f5fb166
issue fix-5
Browse files- 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
|
45 |
-
|
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 |
|