Spaces:
Runtime error
Runtime error
David Li commited on
Commit ·
4b9b9cb
1
Parent(s): 61141e2
fix: try again
Browse files
main.py
CHANGED
|
@@ -53,7 +53,7 @@ async def get_file(id: str):
|
|
| 53 |
content = output_file.read()
|
| 54 |
output_file.close()
|
| 55 |
headers = {
|
| 56 |
-
'Content-Disposition': f'
|
| 57 |
}
|
| 58 |
bytesio_object = BytesIO(content)
|
| 59 |
return StreamingResponse(bytesio_object, headers=headers)
|
|
|
|
| 53 |
content = output_file.read()
|
| 54 |
output_file.close()
|
| 55 |
headers = {
|
| 56 |
+
'Content-Disposition': f'attachment; filename="{id}"'
|
| 57 |
}
|
| 58 |
bytesio_object = BytesIO(content)
|
| 59 |
return StreamingResponse(bytesio_object, headers=headers)
|