Spaces:
Runtime error
Runtime error
File size: 200 Bytes
99fdb5f | 1 2 3 4 5 6 7 8 9 10 | from fastapi.responses import FileResponse
def send_file(path: str):
return FileResponse(
path,
filename=path.split("/")[-1],
media_type="application/octet-stream"
)
|