Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,5 +14,5 @@ async def get_image(filename: str):
|
|
| 14 |
image_path = f"static/{filename}"
|
| 15 |
if not os.path.exists(image_path):
|
| 16 |
return {"error": "Image not found"}
|
| 17 |
-
return FileResponse(image_path, media_type="image/
|
| 18 |
# Create a blank image
|
|
|
|
| 14 |
image_path = f"static/{filename}"
|
| 15 |
if not os.path.exists(image_path):
|
| 16 |
return {"error": "Image not found"}
|
| 17 |
+
return FileResponse(image_path, media_type="image/jpeg", filename=filename)
|
| 18 |
# Create a blank image
|