awacke1 commited on
Commit
520e6e1
Β·
1 Parent(s): e18e2b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py CHANGED
@@ -224,6 +224,30 @@ def display_homunculus_parts():
224
 
225
  # Displaying container part: Head
226
  with st.expander(f"Head ({homunculus_parts['Head']})", expanded=False):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
228
  for part in head_parts:
229
  prompt = f"Learn about the key features of {part}"
 
224
 
225
  # Displaying container part: Head
226
  with st.expander(f"Head ({homunculus_parts['Head']})", expanded=False):
227
+
228
+
229
+ with st.expander(f"Brain ({homunculus_parts['Brain']})", expanded=False):
230
+ brain_parts = {
231
+ "Neocortex": "πŸŒ€ - Involved in higher-order brain functions such as sensory perception, cognition, and spatial reasoning.",
232
+ "Limbic System": "❀️ - Supports functions including emotion, behavior, motivation, long-term memory, and olfaction.",
233
+ "Brainstem": "🌱 - Controls basic body functions like breathing, swallowing, heart rate, blood pressure, and consciousness.",
234
+ "Cerebellum": "🧩 - Coordinates voluntary movements like posture, balance, and speech, resulting in smooth muscular activity.",
235
+ "Thalamus": "πŸ”” - Channels sensory and motor signals to the cerebral cortex, and regulates consciousness and sleep.",
236
+ "Hypothalamus": "🌑️ - Controls body temperature, hunger, thirst, fatigue, and circadian cycles.",
237
+ "Hippocampus": "🐚 - Essential for the formation of new memories and associated with learning and emotions.",
238
+ "Frontal Lobe": "πŸ’‘ - Associated with decision making, problem solving, and planning.",
239
+ "Parietal Lobe": "🀚 - Processes sensory information it receives from the outside world, mainly relating to spatial sense and navigation.",
240
+ "Temporal Lobe": "πŸ‘‚ - Involved in processing auditory information and is also important for the processing of semantics in both speech and vision.",
241
+ "Occipital Lobe": "πŸ‘οΈ - Main center for visual processing."
242
+ }
243
+
244
+ for part, description in brain_parts.items():
245
+ prompt = f"Learn about the {part} and its role: {description}"
246
+ if st.button(f"Explore {part}", key=part):
247
+ response = chat_with_model(prompt, part)
248
+ st.write(response)
249
+
250
+
251
  head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
252
  for part in head_parts:
253
  prompt = f"Learn about the key features of {part}"