Sudipta Nayak
commited on
Commit
·
8b43d65
1
Parent(s):
59f0d7a
changes done
Browse files- app/main.py +12 -5
app/main.py
CHANGED
@@ -58,12 +58,19 @@ async def detect_objects(request: Request, file: UploadFile):
|
|
58 |
|
59 |
original_image_path = f"../static/{file.filename}"
|
60 |
output_image_path = f"../static/output/exp/{file.filename}"
|
61 |
-
output_image_path_1 = f"
|
62 |
|
63 |
-
print('
|
64 |
-
print('output_image_path
|
65 |
-
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
# Render HTML using Jinja2Templates
|
69 |
return templates.TemplateResponse(
|
|
|
58 |
|
59 |
original_image_path = f"../static/{file.filename}"
|
60 |
output_image_path = f"../static/output/exp/{file.filename}"
|
61 |
+
output_image_path_1 = f"app/static/output/{file.filename}"
|
62 |
|
63 |
+
print('original_image_path :', str(original_image_path))
|
64 |
+
print('output_image_path :', str(output_image_path))
|
65 |
+
|
66 |
+
if(os.path.exists(output_image_path_1)):
|
67 |
+
print('file size-1 :', os.path.getsize(output_image_path_1))
|
68 |
+
|
69 |
+
if(os.path.exists(output_image_path)):
|
70 |
+
print('file size-1 :', os.path.getsize(output_image_path))
|
71 |
+
|
72 |
+
if(os.path.exists(str(os.getcwd())+ f"/static/output/exp/{file.filename}")) :
|
73 |
+
print('file size-2 :', os.path.getsize(str(os.getcwd())+ f"/static/output/exp/{file.filename}"))
|
74 |
|
75 |
# Render HTML using Jinja2Templates
|
76 |
return templates.TemplateResponse(
|