Sudipta Nayak commited on
Commit
79424d9
·
1 Parent(s): fe7595b
Files changed (1) hide show
  1. app/main.py +6 -8
app/main.py CHANGED
@@ -38,7 +38,7 @@ async def detect_objects(request: Request, file: UploadFile):
38
  print('File name:', file.filename)
39
 
40
  input_file_path = f"app/static/{file.filename}"
41
- output_file_path = f"app/static/output"
42
 
43
  # Save the uploaded file
44
  with open(input_file_path, "wb") as input_file:
@@ -52,14 +52,12 @@ async def detect_objects(request: Request, file: UploadFile):
52
 
53
  print('Detect end')
54
 
55
- # original_image_path = str(input_file_path)
56
- # output_image_path = f"{output_file_path}/exp/{file.filename}"
57
-
58
- original_image_path = f"../static/cbd64c44-cdb37ccb.jpg"
59
- output_image_path = f"../static/output/cbd64c44-cdb37ccb.jpg"
60
 
61
- # original_image_path = f"../static/{file.filename}"
62
- # output_image_path = f"../static/output/{file.filename}"
63
 
64
  print('original_image path :', str(original_image_path))
65
  print('output_image_path path :', str(output_image_path))
 
38
  print('File name:', file.filename)
39
 
40
  input_file_path = f"app/static/{file.filename}"
41
+ output_file_path = "app/static/output"
42
 
43
  # Save the uploaded file
44
  with open(input_file_path, "wb") as input_file:
 
52
 
53
  print('Detect end')
54
 
55
+
56
+ # original_image_path = f"../static/cbd64c44-cdb37ccb.jpg"
57
+ # output_image_path = f"../static/output/cbd64c44-cdb37ccb.jpg"
 
 
58
 
59
+ original_image_path = f"../static/{file.filename}"
60
+ output_image_path = f"../static/output/exp/{file.filename}"
61
 
62
  print('original_image path :', str(original_image_path))
63
  print('output_image_path path :', str(output_image_path))