How to create a downloadable link for word document?

The general solution for providing a download link/button can be seen at the following:

The general idea is that you take the object and convert it to bytes, then provide those bytes into a link using a Python f-string. The attached link has much more detail.

Best,
Randy