Favicon and custom title issue with Streamlit

Hello all,

I am trying to find a solution for issue with setting the favicon and custom title for the Streamlit app. I am using streamlit==1.43.0

Below is how I set the values for these in my code but it doesn’t stick.

st.set_page_config(page_title="D-Time",page_icon="assets/D.png",layout="wide",initial_sidebar_state="collapsed")

Below is what I see when the page loads or when the refresh is clicked. The custom title and favicon show for a brif second and then resets to the default Streamlit icon.
ezgif-6d3b5ffb534b13

Any pointers on how can I solve this issue?

Thanks.

UPDATE: Same issue with Streamlit 1.45 as well.

Hi @Gurusewak, this is an ongoing topic that has been relevant for about two or more years now. I would suggest reading this discussion. I believe the only work-around for this at the moment is deploying with Docker. I have suggested that this be a feature supported by Streamlit by default but perhaps they will make this change in the future.

@POP Thanks for your response. Unfortunately, I don’t like to use docker as it makes the environment complex for me. I might just abandon the Streamlit in this case and move to flask or django as the branding is something important for my client and I would not like to upset them.

Thanks for your help.