Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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}"
|