awacke1 commited on
Commit
2f6bcce
·
1 Parent(s): effed65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -226,7 +226,6 @@ def display_homunculus_parts():
226
  prompt = f"Learn about the key features of {part}"
227
  if st.button(f"Explore {part}", key=part):
228
  response = chat_with_model(prompt, part)
229
- st.write(response)
230
 
231
  with st.expander(f"Brain ({homunculus_parts['Brain']})", expanded=False):
232
  brain_parts = {
@@ -247,7 +246,6 @@ def display_homunculus_parts():
247
  prompt = f"Learn about the {part} and its role: {description}"
248
  if st.button(f"Explore {part}", key=part):
249
  response = chat_with_model(prompt, part)
250
- st.write(response)
251
 
252
  # Displaying symmetric body parts
253
  symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]
@@ -258,13 +256,11 @@ def display_homunculus_parts():
258
  prompt = f"Learn about the key features of Left {part}"
259
  if st.button(f"Explore Left {part}", key=f"Left {part}"):
260
  response = chat_with_model(prompt, f"Left {part}")
261
- st.write(response)
262
  with col2:
263
  with st.expander(f"Right {part} ({homunculus_parts[f'Right {part}']})", expanded=False):
264
  prompt = f"Learn about the key features of Right {part}"
265
  if st.button(f"Explore Right {part}", key=f"Right {part}"):
266
  response = chat_with_model(prompt, f"Right {part}")
267
- st.write(response)
268
 
269
  # Displaying central body parts
270
  central_parts = ["Neck", "Chest", "Abdomen", "Pelvis"]
@@ -273,17 +269,14 @@ def display_homunculus_parts():
273
  prompt = f"Learn about the key features of {part}"
274
  if st.button(f"Explore {part}", key=part):
275
  response = chat_with_model(prompt, part)
276
- st.write(response)
277
 
278
  # Define function to add paper buttons and links
279
  def add_paper_buttons_and_links():
280
 
281
  # Homunculus
282
- page = st.sidebar.radio("Choose a page:", ["Detailed Homunculus Model", "Homunculus Emoji Representation"])
283
  if page == "Detailed Homunculus Model":
284
  display_homunculus_parts()
285
- elif page == "Homunculus Emoji Representation":
286
- display_homunculus_parts()
287
 
288
  col1, col2, col3, col4 = st.columns(4)
289
 
 
226
  prompt = f"Learn about the key features of {part}"
227
  if st.button(f"Explore {part}", key=part):
228
  response = chat_with_model(prompt, part)
 
229
 
230
  with st.expander(f"Brain ({homunculus_parts['Brain']})", expanded=False):
231
  brain_parts = {
 
246
  prompt = f"Learn about the {part} and its role: {description}"
247
  if st.button(f"Explore {part}", key=part):
248
  response = chat_with_model(prompt, part)
 
249
 
250
  # Displaying symmetric body parts
251
  symmetric_parts = ["Shoulder", "Upper Arm", "Elbow", "Forearm", "Wrist", "Hand", "Hip", "Thigh", "Knee", "Shin"]
 
256
  prompt = f"Learn about the key features of Left {part}"
257
  if st.button(f"Explore Left {part}", key=f"Left {part}"):
258
  response = chat_with_model(prompt, f"Left {part}")
 
259
  with col2:
260
  with st.expander(f"Right {part} ({homunculus_parts[f'Right {part}']})", expanded=False):
261
  prompt = f"Learn about the key features of Right {part}"
262
  if st.button(f"Explore Right {part}", key=f"Right {part}"):
263
  response = chat_with_model(prompt, f"Right {part}")
 
264
 
265
  # Displaying central body parts
266
  central_parts = ["Neck", "Chest", "Abdomen", "Pelvis"]
 
269
  prompt = f"Learn about the key features of {part}"
270
  if st.button(f"Explore {part}", key=part):
271
  response = chat_with_model(prompt, part)
 
272
 
273
  # Define function to add paper buttons and links
274
  def add_paper_buttons_and_links():
275
 
276
  # Homunculus
277
+ page = st.sidebar.radio("Choose a page:", ["Detailed Homunculus Model"])
278
  if page == "Detailed Homunculus Model":
279
  display_homunculus_parts()
 
 
280
 
281
  col1, col2, col3, col4 = st.columns(4)
282