Update main.py
Browse files
main.py
CHANGED
@@ -29,8 +29,8 @@ async def process_image(file: UploadFile = File(...)):
|
|
29 |
with open("result_image.jpg", "wb") as result_buffer:
|
30 |
result_buffer.write(processed_image)
|
31 |
|
32 |
-
# Return the processed image
|
33 |
-
return FileResponse("result_image.jpg", media_type="image/jpeg"
|
34 |
|
35 |
app.mount("/", StaticFiles(directory="AB", html=True), name="static")
|
36 |
|
|
|
29 |
with open("result_image.jpg", "wb") as result_buffer:
|
30 |
result_buffer.write(processed_image)
|
31 |
|
32 |
+
# Return the processed image without setting Content-Disposition header
|
33 |
+
return FileResponse("result_image.jpg", media_type="image/jpeg")
|
34 |
|
35 |
app.mount("/", StaticFiles(directory="AB", html=True), name="static")
|
36 |
|