Update app.py
Browse files
app.py
CHANGED
@@ -583,7 +583,34 @@ import streamlit as st
|
|
583 |
def StreamMedChatResponse(topic):
|
584 |
st.write(f"Showing resources or questions related to: {topic}")
|
585 |
|
|
|
|
|
586 |
def add_medical_exam_buttons():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
587 |
with st.expander("Medical Licensing Exam Topics ๐", expanded=False):
|
588 |
st.markdown("๐ฉบ **Important**: This section provides a variety of medical topics that are often encountered in medical licensing exams.")
|
589 |
|
|
|
583 |
def StreamMedChatResponse(topic):
|
584 |
st.write(f"Showing resources or questions related to: {topic}")
|
585 |
|
586 |
+
|
587 |
+
|
588 |
def add_medical_exam_buttons():
|
589 |
+
# Medical exam terminology descriptions
|
590 |
+
descriptions = {
|
591 |
+
"White Blood Cells ๐": "3 Q&A with emojis about white blood cells ๐ฅ",
|
592 |
+
"CT Imaging๐ฆ ": "3 Q&A with emojis on CT Imaging post surgery ๐",
|
593 |
+
"Hematoma ๐": "3 Q&A with emojis about hematoma and infection ๐ช",
|
594 |
+
"Post Surgery Wound Care ๐": "3 Q&A with emojis on wound care ๐ฉธ",
|
595 |
+
"Healing and humor ๐": "3 Q&A with emojis on stories and humor ๐",
|
596 |
+
"Psychology of bedside manner ๐งฌ": "3 Q&A with emojis on bedside manner ๐ ",
|
597 |
+
"CT scan ๐": "3 Q&A with analysis on infection using CT scan ๐ฉบ"
|
598 |
+
}
|
599 |
+
|
600 |
+
# Expander for medical topics
|
601 |
+
with st.expander("Medical Licensing Exam Topics ๐", expanded=False):
|
602 |
+
st.markdown("๐ฉบ **Important**: Variety of topics for medical licensing exams.")
|
603 |
+
|
604 |
+
# Create buttons for each description with unique keys
|
605 |
+
for idx, (label, content) in enumerate(descriptions.items()):
|
606 |
+
button_key = f"button_{idx}"
|
607 |
+
if st.button(label, key=button_key):
|
608 |
+
st.write(f"Clicked on {label} with key {button_key}")
|
609 |
+
StreamLLMChatResponse(button_key, content)
|
610 |
+
|
611 |
+
|
612 |
+
|
613 |
+
def add_medical_exam_buttons2():
|
614 |
with st.expander("Medical Licensing Exam Topics ๐", expanded=False):
|
615 |
st.markdown("๐ฉบ **Important**: This section provides a variety of medical topics that are often encountered in medical licensing exams.")
|
616 |
|