Sudipta Nayak commited on
Commit
9597066
·
1 Parent(s): 0784f64
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -61,7 +61,7 @@ async def detect_objects(request: Request, file: UploadFile):
61
  # Render HTML using Jinja2Templates
62
  return templates.TemplateResponse(
63
  "result.html",
64
- {"request": request, "original_image": original_image_path, "output_image": output_image_path},
65
  )
66
  # return StreamingResponse(open(output_file, "rb"), media_type="video/mp4")
67
 
 
61
  # Render HTML using Jinja2Templates
62
  return templates.TemplateResponse(
63
  "result.html",
64
+ {"request": request, "original_image": "../static/{file.filename}", "output_image": "../static/output/{file.filename}"}
65
  )
66
  # return StreamingResponse(open(output_file, "rb"), media_type="video/mp4")
67