I am trying to insert an image with hyperlink to another website. The image is stored locally in same directory as app.py file.
I tried to do it using pure markdown and html.
Pure Markdown Code:
html = " <a href="site.com"> <img src="image.png"> </a> "' 'st.markdown(html, unsafe_allow_html=True)
In both cases the browser cannot find the image because it is searching for: localhost:8501/image.png instead of my app.py directory.
I tried to add full path ‘C://…’ too but the problem persists.
Using the st.image function it is not possible to add the hyperlink right?
I had replaced the ‘image.png’ with an online image URL, and that is fine. But really needed to have the image locally.