Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -282,7 +282,15 @@ def display_homunculus_parts():
|
|
282 |
prompt = f"Learn about the {part} and its role: {description}"
|
283 |
if st.button(f"Explore {part} 🧠", key=part):
|
284 |
response = chat_with_model(prompt, part)
|
285 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
# Displaying symmetric body parts
|
287 |
symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]
|
288 |
for part in symmetric_parts:
|
@@ -297,14 +305,7 @@ def display_homunculus_parts():
|
|
297 |
prompt = f"Learn about the key features and functions of the Right {part} - {homunculus_parts_extended[f'Right {part}'].split(' ')[-1]}"
|
298 |
if st.button(f"Explore Right {part} 💪", key=f"Right {part}"):
|
299 |
response = chat_with_model(prompt, f"Right {part}")
|
300 |
-
|
301 |
-
# Displaying central body parts
|
302 |
-
central_parts = ["Neck", "Chest", "Abdomen", "Pelvis"]
|
303 |
-
for part in central_parts:
|
304 |
-
with st.expander(f"{part} ({homunculus_parts_extended[part]})", expanded=False):
|
305 |
-
prompt = f"Learn about the key features and functions of the {part} - {homunculus_parts_extended[part].split(' ')[-1]}"
|
306 |
-
if st.button(f"Explore {part} 🧣", key=part):
|
307 |
-
response = chat_with_model(prompt, part)
|
308 |
|
309 |
# Define function to add paper buttons and links
|
310 |
def add_paper_buttons_and_links():
|
|
|
282 |
prompt = f"Learn about the {part} and its role: {description}"
|
283 |
if st.button(f"Explore {part} 🧠", key=part):
|
284 |
response = chat_with_model(prompt, part)
|
285 |
+
|
286 |
+
# Displaying central body parts
|
287 |
+
central_parts = ["Neck", "Chest", "Abdomen", "Pelvis"]
|
288 |
+
for part in central_parts:
|
289 |
+
with st.expander(f"{part} ({homunculus_parts_extended[part]})", expanded=False):
|
290 |
+
prompt = f"Learn about the key features and functions of the {part} - {homunculus_parts_extended[part].split(' ')[-1]}"
|
291 |
+
if st.button(f"Explore {part} 🧣", key=part):
|
292 |
+
response = chat_with_model(prompt, part)
|
293 |
+
|
294 |
# Displaying symmetric body parts
|
295 |
symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]
|
296 |
for part in symmetric_parts:
|
|
|
305 |
prompt = f"Learn about the key features and functions of the Right {part} - {homunculus_parts_extended[f'Right {part}'].split(' ')[-1]}"
|
306 |
if st.button(f"Explore Right {part} 💪", key=f"Right {part}"):
|
307 |
response = chat_with_model(prompt, f"Right {part}")
|
308 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
# Define function to add paper buttons and links
|
311 |
def add_paper_buttons_and_links():
|