Update app.py
Browse files
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/
|
178 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/
|
179 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/
|
180 |
-
"π¬": lambda k: f"https://huggingface.co/spaces/awacke1/
|
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/
|
204 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/
|
205 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/
|
206 |
-
"π¬": lambda k: f"https://huggingface.co/spaces/awacke1/
|
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)
|