Spaces:
Sleeping
Sleeping
eaglelandsonce
commited on
Update pages/25_Patient_Talk.py
Browse files- pages/25_Patient_Talk.py +13 -7
pages/25_Patient_Talk.py
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
#
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
-
# Display the clickable link
|
7 |
-
st.markdown(
|
8 |
-
|
9 |
-
|
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.")
|