import streamlit as st from pathlib import Path # Check if the file exists image_path = Path("patienttalk.png") if image_path.is_file(): # Display the image st.image(image_path, caption="Patient Talk", use_container_width=True) # Display the clickable link st.markdown( '[Click here for more details](https://chatgpt.com/g/g-cBp7DBgok-patient-talk)', unsafe_allow_html=True ) else: st.error("The image file 'patienttalk.png' could not be found. Please ensure the file is in the correct location.")