eaglelandsonce commited on
Commit
4e736df
·
verified ·
1 Parent(s): ebc6c7d

Update pages/25_Patient_Talk.py

Browse files
Files changed (1) hide show
  1. pages/25_Patient_Talk.py +13 -7
pages/25_Patient_Talk.py CHANGED
@@ -1,10 +1,16 @@
1
  import streamlit as st
 
2
 
3
- # Display the image
4
- st.image("patienttalk.png", caption="Patient Talk", use_column_width=True)
 
 
 
5
 
6
- # Display the clickable link
7
- st.markdown(
8
- '[Click here for more details](https://chatgpt.com/g/g-cBp7DBgok-patient-talk)',
9
- unsafe_allow_html=True
10
- )
 
 
 
1
  import streamlit as st
2
+ from pathlib import Path
3
 
4
+ # Check if the file exists
5
+ image_path = Path("patienttalk.png")
6
+ if image_path.is_file():
7
+ # Display the image
8
+ st.image(image_path, caption="Patient Talk", use_container_width=True)
9
 
10
+ # Display the clickable link
11
+ st.markdown(
12
+ '[Click here for more details](https://chatgpt.com/g/g-cBp7DBgok-patient-talk)',
13
+ unsafe_allow_html=True
14
+ )
15
+ else:
16
+ st.error("The image file 'patienttalk.png' could not be found. Please ensure the file is in the correct location.")