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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -221,6 +221,14 @@ homunculus_parts = {
221
  # Function to display the homunculus parts with expanders and chat buttons
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 = {
@@ -243,14 +251,6 @@ def display_homunculus_parts():
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"]
256
  for part in symmetric_parts:
 
221
  # Function to display the homunculus parts with expanders and chat buttons
222
  def display_homunculus_parts():
223
  st.title("Homunculus Model")
224
+
225
+ with st.expander(f"Head ({homunculus_parts['Head']})", expanded=False):
226
+ head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
227
+ for part in head_parts:
228
+ prompt = f"Learn about the key features of {part}"
229
+ if st.button(f"Explore {part}", key=part):
230
+ response = chat_with_model(prompt, part)
231
+ st.write(response)
232
 
233
  with st.expander(f"Brain ({homunculus_parts['Brain']})", expanded=False):
234
  brain_parts = {
 
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"]
256
  for part in symmetric_parts: