Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -222,38 +222,34 @@ homunculus_parts = {
|
|
222 |
def display_homunculus_parts():
|
223 |
st.title("Homunculus Model")
|
224 |
|
225 |
-
|
226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
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"]
|