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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -29
app.py CHANGED
@@ -224,36 +224,36 @@ def display_homunculus_parts():
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}"
254
- if st.button(f"Explore {part}", key=part):
255
- response = chat_with_model(prompt, part)
256
- st.write(response)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
 
258
  # Displaying symmetric body parts
259
  symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]
 
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}"
254
+ if st.button(f"Explore {part}", key=part):
255
+ response = chat_with_model(prompt, part)
256
+ st.write(response)
257
 
258
  # Displaying symmetric body parts
259
  symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]