awacke1 commited on
Commit
3b25e78
·
verified ·
1 Parent(s): 256a867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -91,7 +91,7 @@ def load_score(key):
91
 
92
 
93
  # Enhanced SciFi glossary with futuristic content
94
- transhuman_glossary = {
95
  "🚀 Core Technologies": ["Gene Editing🧬 (CRISPR)", "Neural Interface Technology🧠⚡", "Advanced Robotics🤖🛠", "Sustainable Energy Systems🌱⚡", "Augmented Reality (AR)🕶️", "3D Bioprinting🖨️🧬", "Nano Medicine🔬💊", "Blockchain for Security🔗🔒", "Synthetic Biology🧪🌿", "Autonomous Vehicles🚗💨"],
96
  "🌐 Nations": ["United Earth Government🌍", "Off-Earth Mining Corporations🌌⛏️", "Underwater Habitat States🌊🏠", "Orbital Colony Federations🛰️🤝", "High-altitude Aerostat Communities☁️🏠", "Virtual Nations🌐👾", "AI Sovereignties🤖👑", "Genetically Modified Enclaves🧬🏞️", "Space Elevator Consortiums🚀⚙️", "Quantum Computing Havens💻🔐"],
97
  "💡 Memes": ["Trans-speciesism🧬🐅➡️🚀", "Eco-technologism🌍🔧", "Mind Uploading💾🧠", "Multi-planetary Living🪐🏠", "Robot Rights Activism🤖❤️", "Virtual Reality Societies🕶️🌐", "Quantum Consciousness🔮🧠", "Solar System Restorationism🌞🌱", "Post-Scarcity Economics💰➡️🔄", "Cyber-physical Integration🖥️🦾"],
@@ -134,7 +134,7 @@ def search_glossary(query):
134
  # Display the glossary with Streamlit components, ensuring emojis are used
135
  def display_glossary(area):
136
  st.subheader(f"📘 Glossary for {area}")
137
- terms = transhuman_glossary[area]
138
  for idx, term in enumerate(terms, start=1):
139
  st.write(f"{idx}. {term}")
140
 
@@ -172,7 +172,7 @@ def display_glossary_grid(glossary):
172
 
173
  # Streamlined UI for displaying buttons with scores, integrating emojis
174
  def display_buttons_with_scores():
175
- for header, terms in transhuman_glossary.items():
176
  st.markdown(f"## {header}")
177
  for term in terms:
178
  key = generate_key(term, header, terms.index(term))
@@ -276,7 +276,7 @@ def clear_query_params():
276
  # Function to display content or image based on a query
277
  def display_content_or_image(query):
278
  # Check if the query matches any glossary term
279
- for category, terms in transhuman_glossary.items():
280
  for term in terms:
281
  if query.lower() in term.lower():
282
  st.subheader(f"Found in {category}:")
@@ -1248,14 +1248,14 @@ def main():
1248
 
1249
 
1250
  st.title("SciFi Glossary 🌌")
1251
- display_glossary_grid(transhuman_glossary)
1252
 
1253
  st.title("🌌🚀 SciFi Encyclopedia")
1254
  st.markdown("## Explore the universe of Transhuman Space through interactive storytelling and encyclopedic knowledge.🌠")
1255
 
1256
  display_buttons_with_scores()
1257
 
1258
- # Assuming the transhuman_glossary and other setup code remains the same
1259
  #st.write("Current Query Parameters:", st.query_params)
1260
  #st.markdown("### Query Parameters - These Deep Link Map to Remixable Methods, Navigate or Trigger Functionalities")
1261
 
 
91
 
92
 
93
  # Enhanced SciFi glossary with futuristic content
94
+ roleplaying_glossary = {
95
  "🚀 Core Technologies": ["Gene Editing🧬 (CRISPR)", "Neural Interface Technology🧠⚡", "Advanced Robotics🤖🛠", "Sustainable Energy Systems🌱⚡", "Augmented Reality (AR)🕶️", "3D Bioprinting🖨️🧬", "Nano Medicine🔬💊", "Blockchain for Security🔗🔒", "Synthetic Biology🧪🌿", "Autonomous Vehicles🚗💨"],
96
  "🌐 Nations": ["United Earth Government🌍", "Off-Earth Mining Corporations🌌⛏️", "Underwater Habitat States🌊🏠", "Orbital Colony Federations🛰️🤝", "High-altitude Aerostat Communities☁️🏠", "Virtual Nations🌐👾", "AI Sovereignties🤖👑", "Genetically Modified Enclaves🧬🏞️", "Space Elevator Consortiums🚀⚙️", "Quantum Computing Havens💻🔐"],
97
  "💡 Memes": ["Trans-speciesism🧬🐅➡️🚀", "Eco-technologism🌍🔧", "Mind Uploading💾🧠", "Multi-planetary Living🪐🏠", "Robot Rights Activism🤖❤️", "Virtual Reality Societies🕶️🌐", "Quantum Consciousness🔮🧠", "Solar System Restorationism🌞🌱", "Post-Scarcity Economics💰➡️🔄", "Cyber-physical Integration🖥️🦾"],
 
134
  # Display the glossary with Streamlit components, ensuring emojis are used
135
  def display_glossary(area):
136
  st.subheader(f"📘 Glossary for {area}")
137
+ terms = roleplaying_glossary[area]
138
  for idx, term in enumerate(terms, start=1):
139
  st.write(f"{idx}. {term}")
140
 
 
172
 
173
  # Streamlined UI for displaying buttons with scores, integrating emojis
174
  def display_buttons_with_scores():
175
+ for header, terms in roleplaying_glossary.items():
176
  st.markdown(f"## {header}")
177
  for term in terms:
178
  key = generate_key(term, header, terms.index(term))
 
276
  # Function to display content or image based on a query
277
  def display_content_or_image(query):
278
  # Check if the query matches any glossary term
279
+ for category, terms in roleplaying_glossary.items():
280
  for term in terms:
281
  if query.lower() in term.lower():
282
  st.subheader(f"Found in {category}:")
 
1248
 
1249
 
1250
  st.title("SciFi Glossary 🌌")
1251
+ display_glossary_grid(roleplaying_glossary)
1252
 
1253
  st.title("🌌🚀 SciFi Encyclopedia")
1254
  st.markdown("## Explore the universe of Transhuman Space through interactive storytelling and encyclopedic knowledge.🌠")
1255
 
1256
  display_buttons_with_scores()
1257
 
1258
+ # Assuming the roleplaying_glossary and other setup code remains the same
1259
  #st.write("Current Query Parameters:", st.query_params)
1260
  #st.markdown("### Query Parameters - These Deep Link Map to Remixable Methods, Navigate or Trigger Functionalities")
1261