awacke1 commited on
Commit
2064b1a
1 Parent(s): 0ee03ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -0
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