St.download_button with a existent .html file in the actual directory

Hello, everyone

I am trying to link a already existent .html file (created by a drift suite that generates a .html file) to a st.download_button. When i try to load and read the .html file from my directory, the file appears a little bit different from its original form, i.e, from the .html file itseld (like some components are not rendered properly). Is there a way to download the file itself without loading it beforehand?

Thank you

1 Like

Uness you did something wrong, the files should be identical byte by byte. Can you find any differences in the bytes or the decoded text?

Consider also that a web page is not necessarily just an html file.

1 Like