awacke1 commited on
Commit
d61b72f
·
1 Parent(s): 4a8f717

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 ({homunculus_parts['Head']})", expanded=False):
258
  head_parts = ["Left Eye", "Right Eye", "Left Eyebrow", "Right Eyebrow", "Nose", "Mouth"]
259
  for part in head_parts:
260
- prompt = f"Learn about the key features of {part}"
 
 
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