awacke1 commited on
Commit
6ab9b23
·
1 Parent(s): b3b9ed7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -31
app.py CHANGED
@@ -222,38 +222,34 @@ homunculus_parts = {
222
  def display_homunculus_parts():
223
  st.title("Homunculus Model")
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"]
 
222
  def display_homunculus_parts():
223
  st.title("Homunculus Model")
224
 
225
+ with st.expander(f"Brain ({homunculus_parts['Brain']})", expanded=False):
226
+ brain_parts = {
227
+ "Neocortex": "🌀 - Involved in higher-order brain functions such as sensory perception, cognition, and spatial reasoning.",
228
+ "Limbic System": "❤️ - Supports functions including emotion, behavior, motivation, long-term memory, and olfaction.",
229
+ "Brainstem": "🌱 - Controls basic body functions like breathing, swallowing, heart rate, blood pressure, and consciousness.",
230
+ "Cerebellum": "🧩 - Coordinates voluntary movements like posture, balance, and speech, resulting in smooth muscular activity.",
231
+ "Thalamus": "🔔 - Channels sensory and motor signals to the cerebral cortex, and regulates consciousness and sleep.",
232
+ "Hypothalamus": "🌡️ - Controls body temperature, hunger, thirst, fatigue, and circadian cycles.",
233
+ "Hippocampus": "🐚 - Essential for the formation of new memories and associated with learning and emotions.",
234
+ "Frontal Lobe": "💡 - Associated with decision making, problem solving, and planning.",
235
+ "Parietal Lobe": "🤚 - Processes sensory information it receives from the outside world, mainly relating to spatial sense and navigation.",
236
+ "Temporal Lobe": "👂 - Involved in processing auditory information and is also important for the processing of semantics in both speech and vision.",
237
+ "Occipital Lobe": "👁️ - Main center for visual processing."
238
+ }
239
 
240
+ for part, description in brain_parts.items():
241
+ prompt = f"Learn about the {part} and its role: {description}"
242
+ if st.button(f"Explore {part}", key=part):
243
+ response = chat_with_model(prompt, part)
244
+ st.write(response)
245
+
246
+
247
+ head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
248
+ for part in head_parts:
249
+ prompt = f"Learn about the key features of {part}"
250
+ if st.button(f"Explore {part}", key=part):
251
+ response = chat_with_model(prompt, part)
252
+ st.write(response)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
 
254
  # Displaying symmetric body parts
255
  symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]