Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,10 +254,12 @@ homunculus_parts_extended = {
|
|
254 |
def display_homunculus_parts():
|
255 |
st.title("Homunculus Model")
|
256 |
|
257 |
-
with st.expander(f"Head ({
|
258 |
head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
|
259 |
for part in head_parts:
|
260 |
-
|
|
|
|
|
261 |
if st.button(f"Explore {part}", key=part):
|
262 |
response = chat_with_model(prompt, part)
|
263 |
|
|
|
254 |
def display_homunculus_parts():
|
255 |
st.title("Homunculus Model")
|
256 |
|
257 |
+
with st.expander(f"Head ({homunculus_parts_extended['Head']})", expanded=False):
|
258 |
head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
|
259 |
for part in head_parts:
|
260 |
+
# Extracting the function/description from the extended dictionary
|
261 |
+
part_description = homunculus_parts_extended[part].split('(')[1].rstrip(')')
|
262 |
+
prompt = f"Learn about the key features and functions of the {part} - {part_description}"
|
263 |
if st.button(f"Explore {part}", key=part):
|
264 |
response = chat_with_model(prompt, part)
|
265 |
|