Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,4 +56,4 @@ async def run_code(code: Code):
|
|
56 |
# Return image as response
|
57 |
# return Response(content=img_buffer.getvalue(), media_type="image/png")
|
58 |
# return FileResponse(file_path, media_type="image/png")
|
59 |
-
|
|
|
56 |
# Return image as response
|
57 |
# return Response(content=img_buffer.getvalue(), media_type="image/png")
|
58 |
# return FileResponse(file_path, media_type="image/png")
|
59 |
+
return FileResponse(file_path, media_type="application/pdf", filename="graph.pdf")
|