awacke1 commited on
Commit
80edf4d
β€’
1 Parent(s): 72f1121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -166,6 +166,8 @@ PromptPrefix2 = 'Create a streamlit python user app with full code listing to cr
166
  PromptPrefix3 = 'Create a HTML5 aframe and javascript app using appropriate libraries to create a word game simulation with advanced libraries like aframe to render 3d scenes creating moving entities that stay within a bounding box but show text and animation in 3d for inventory, components and story entities. Show full code listing. Add a list of new random entities say 3 of a few different types to any list appropriately and use emojis to make things easier and fun to read. Use appropriate emojis in labels. Create the UI to implement storytelling in the style of a dungeon master, with features using three emoji appropriate text plot twists and recurring interesting funny fascinating and complex almost poetic named characters with genius traits and file IO, randomness, ten point choice lists, math distribution tradeoffs, witty humorous dilemnas with emoji , rewards, variables, reusable functions with parameters, and data driven app with python libraries and streamlit components for Javascript and HTML5. Use appropriate emojis for labels to summarize and list parts, function, conditions for topic:'
167
 
168
  # Function to display the entire glossary in a grid format with links
 
 
169
  def display_glossary_grid(roleplaying_glossary):
170
  search_urls = {
171
  "πŸ“–": lambda k: f"https://en.wikipedia.org/wiki/{quote(k)}",
@@ -174,10 +176,10 @@ def display_glossary_grid(roleplaying_glossary):
174
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
175
  "πŸŽ₯": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
176
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
177
- "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}", # this url plus query!
178
- "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
179
- "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
180
- "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
181
  }
182
 
183
  for category, details in roleplaying_glossary.items():
@@ -200,10 +202,10 @@ def display_glossary_entity(k):
200
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
201
  "πŸŽ₯": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
202
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
203
- "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}", # this url plus query!
204
- "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
205
- "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
206
- "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/World-Ship-Design?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
207
  }
208
  links_md = ' '.join([f"[{emoji}]({url(k)})" for emoji, url in search_urls.items()])
209
  st.markdown(f"{k} {links_md}", unsafe_allow_html=True)
 
166
  PromptPrefix3 = 'Create a HTML5 aframe and javascript app using appropriate libraries to create a word game simulation with advanced libraries like aframe to render 3d scenes creating moving entities that stay within a bounding box but show text and animation in 3d for inventory, components and story entities. Show full code listing. Add a list of new random entities say 3 of a few different types to any list appropriately and use emojis to make things easier and fun to read. Use appropriate emojis in labels. Create the UI to implement storytelling in the style of a dungeon master, with features using three emoji appropriate text plot twists and recurring interesting funny fascinating and complex almost poetic named characters with genius traits and file IO, randomness, ten point choice lists, math distribution tradeoffs, witty humorous dilemnas with emoji , rewards, variables, reusable functions with parameters, and data driven app with python libraries and streamlit components for Javascript and HTML5. Use appropriate emojis for labels to summarize and list parts, function, conditions for topic:'
167
 
168
  # Function to display the entire glossary in a grid format with links
169
+
170
+ Site_Name = 'Scholarly-Article-Document-Search-With-Memory'
171
  def display_glossary_grid(roleplaying_glossary):
172
  search_urls = {
173
  "πŸ“–": lambda k: f"https://en.wikipedia.org/wiki/{quote(k)}",
 
176
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
177
  "πŸŽ₯": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
178
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
179
+ "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}", # this url plus query!
180
+ "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
181
+ "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
182
+ "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
183
  }
184
 
185
  for category, details in roleplaying_glossary.items():
 
202
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
203
  "πŸŽ₯": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
204
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
205
+ "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}", # this url plus query!
206
+ "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
207
+ "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
208
+ "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
209
  }
210
  links_md = ' '.join([f"[{emoji}]({url(k)})" for emoji, url in search_urls.items()])
211
  st.markdown(f"{k} {links_md}", unsafe_allow_html=True)