Favicon not working in application deployed in streamlit community cloud

Hi Team,

I am able to see the favicon proper in local but not in streamlit cloud. I am noticing this from last week before this latest security patch. Is there anything to modified in my below code.

# Path Variables
faviconPath = "/Users/sridharrajaram/***/***/***/dashboard/images/****.png"

# Setting Page Title, Page Icon and Layout Size
st.set_page_config(
    page_title='Application_Name',
    page_icon=faviconPath,
    layout='wide',
    initial_sidebar_state="expanded"
)

Regards
Sridhar

You don’t have access to your local client file system if streamlit runs in any hosted environment.

So to fix this you need to make your path relative, something like

faviconPath = "dashboard/images/****.png"

No still the issue is not getting resolved

@Franky1 Earlier i was getting it but not now.

@sridharr Please share the code that you are now using that is not using an absolute path to the png

Hi,

As requested, Kindly find the below code. i have changed the absolute path to relative path as quoted in above reply

# Path Variables
faviconPath = "dashboard/images/****.png"

# Setting Page Title, Page Icon and Layout Size
st.set_page_config(
    page_title='APP NAME',
    page_icon=faviconPath,
    layout='wide',
    initial_sidebar_state="expanded"
)

“dashboard” is the github repo folder name which is mapped for CI/CD for streamlit cloud community.

Hi @blackary
I fixed it and working now. we need to change favicon path as

# Path Variables
faviconPath = "../dashboard/images/****.png"

Thanks all for your support