Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ if st.checkbox('Show Anatomy Table'):
|
|
| 73 |
|
| 74 |
""")
|
| 75 |
|
| 76 |
-
|
| 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
|
| 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,
|
| 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(
|
| 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 |
|