awacke1 commited on
Commit
e867252
β€’
1 Parent(s): 1f3cde5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -73,7 +73,7 @@ if st.checkbox('Show Anatomy Table'):
73
 
74
  """)
75
 
76
- body_map_data = {
77
  "🧠 Central Nervous System": {
78
  "Brain": ["Cognitive functions", "Emotion regulation", "Neural coordination"],
79
  "Spinal Cord": ["Nerve signal transmission", "Reflex actions", "Connects brain to body"],
@@ -252,7 +252,7 @@ topic_emojis = {
252
 
253
  # Adjusted display_buttons_with_scores function
254
  def display_buttons_with_scores():
255
- for category, games in body_map_data.items():
256
  category_emoji = topic_emojis.get(category, "πŸ”") # Default to search icon if no match
257
  st.markdown(f"## {category_emoji} {category}")
258
  for game, terms in games.items():
@@ -267,7 +267,7 @@ def display_buttons_with_scores():
267
  # -----------------------------------------------------------------
268
  # query_body = f"Create a detailed outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
269
  query_body = f"Create a streamlit python app.py that produces a detailed markdown outline and CSV dataset user interface with an outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
270
- response = search_glossary(query_prefix + query_body, body_map_data)
271
 
272
 
273
  def fetch_wikipedia_summary(keyword):
@@ -1085,7 +1085,7 @@ def main():
1085
 
1086
  # Display the glossary grid
1087
  st.title("Body Map Glossary 🎲")
1088
- display_glossary_grid(body_map_data)
1089
  st.title("πŸŽ²πŸ—ΊοΈ Card Game Universe")
1090
  st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
1091
 
 
73
 
74
  """)
75
 
76
+ roleplaying_glossary = {
77
  "🧠 Central Nervous System": {
78
  "Brain": ["Cognitive functions", "Emotion regulation", "Neural coordination"],
79
  "Spinal Cord": ["Nerve signal transmission", "Reflex actions", "Connects brain to body"],
 
252
 
253
  # Adjusted display_buttons_with_scores function
254
  def display_buttons_with_scores():
255
+ for category, games in roleplaying_glossary.items():
256
  category_emoji = topic_emojis.get(category, "πŸ”") # Default to search icon if no match
257
  st.markdown(f"## {category_emoji} {category}")
258
  for game, terms in games.items():
 
267
  # -----------------------------------------------------------------
268
  # query_body = f"Create a detailed outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
269
  query_body = f"Create a streamlit python app.py that produces a detailed markdown outline and CSV dataset user interface with an outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
270
+ response = search_glossary(query_prefix + query_body, roleplaying_glossary)
271
 
272
 
273
  def fetch_wikipedia_summary(keyword):
 
1085
 
1086
  # Display the glossary grid
1087
  st.title("Body Map Glossary 🎲")
1088
+ display_glossary_grid(roleplaying_glossary)
1089
  st.title("πŸŽ²πŸ—ΊοΈ Card Game Universe")
1090
  st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
1091