St.sidebar.image corrupt

Hai I want to input an image at the sidebar, however whenever I do, it does not working I do not know what is wrong?

This is my coding
#side bar

#side bar st.sidebar.image(r"C:\Users\Administrator\Documents\UiTM\D3\S6\CSP\image\carat.jpg",caption="Developed and Maintaned by: Hidayah Athira")
This is where I put the photo

  • maybe because carat.jpg does not exist, it is a png file?
  • btw, do not use absolute windows paths, use relative posix paths instead
  1. it is a png file.
  2. what is posix path i don’t quite understand?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.