Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -167,16 +167,16 @@ PromptPrefix3 = 'Create a HTML5 aframe and javascript app using appropriate libr
|
|
167 |
|
168 |
def display_glossary_grid(roleplaying_glossary):
|
169 |
search_urls = {
|
170 |
-
"π": lambda k: f"https://en.wikipedia.org/wiki/{quote(k)}",
|
171 |
-
"π": lambda k: f"https://www.google.com/search?q={quote(k)}",
|
172 |
-
"βΆοΈ": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
173 |
-
"π": lambda k: f"https://www.bing.com/search?q={quote(k)}",
|
174 |
-
"π₯": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
175 |
-
"π¦": lambda k: f"https://twitter.com/search?q={quote(k)}",
|
176 |
"ππArXiv": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}", # this url plus query!
|
177 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
|
178 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
|
179 |
-
"π¬": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
|
180 |
}
|
181 |
|
182 |
for category, details in roleplaying_glossary.items():
|
@@ -189,23 +189,27 @@ def display_glossary_grid(roleplaying_glossary):
|
|
189 |
gameterm = category + ' - ' + game + ' - ' + term
|
190 |
links_md = ' '.join([f"[{emoji}]({url(gameterm)})" for emoji, url in search_urls.items()])
|
191 |
#links_md = ' '.join([f"[{emoji}]({url(term)})" for emoji, url in search_urls.items()])
|
192 |
-
st.markdown(f"{term} {links_md}", unsafe_allow_html=True)
|
|
|
|
|
193 |
|
194 |
def display_glossary_entity(k):
|
195 |
search_urls = {
|
196 |
-
"π": lambda k: f"https://en.wikipedia.org/wiki/{quote(k)}",
|
197 |
-
"π": lambda k: f"https://www.google.com/search?q={quote(k)}",
|
198 |
-
"βΆοΈ": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
199 |
-
"π": lambda k: f"https://www.bing.com/search?q={quote(k)}",
|
200 |
-
"π₯": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
201 |
-
"π¦": lambda k: f"https://twitter.com/search?q={quote(k)}",
|
202 |
"ππArXiv": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}", # this url plus query!
|
203 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
|
204 |
-
"π": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
|
205 |
-
"π¬": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
|
206 |
}
|
207 |
links_md = ' '.join([f"[{emoji}]({url(k)})" for emoji, url in search_urls.items()])
|
208 |
-
st.markdown(f"{k} {links_md}", unsafe_allow_html=True)
|
|
|
|
|
209 |
|
210 |
|
211 |
roleplaying_glossary = {
|
@@ -698,7 +702,6 @@ def display_glossary_grid(roleplaying_glossary):
|
|
698 |
"πAnalyst": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
|
699 |
"πPyCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
|
700 |
"π¬JSCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
|
701 |
-
|
702 |
}
|
703 |
|
704 |
for category, details in roleplaying_glossary.items():
|
|
|
167 |
|
168 |
def display_glossary_grid(roleplaying_glossary):
|
169 |
search_urls = {
|
170 |
+
"πWiki": lambda k: f"https://en.wikipedia.org/wiki/{quote(k)}",
|
171 |
+
"πGoogle": lambda k: f"https://www.google.com/search?q={quote(k)}",
|
172 |
+
"βΆοΈYouTube": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
173 |
+
"πBing": lambda k: f"https://www.bing.com/search?q={quote(k)}",
|
174 |
+
"π₯YouTube": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
175 |
+
"π¦Twitter": lambda k: f"https://twitter.com/search?q={quote(k)}",
|
176 |
"ππArXiv": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}", # this url plus query!
|
177 |
+
"πAnalyst": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
|
178 |
+
"πPyCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
|
179 |
+
"π¬JSCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
|
180 |
}
|
181 |
|
182 |
for category, details in roleplaying_glossary.items():
|
|
|
189 |
gameterm = category + ' - ' + game + ' - ' + term
|
190 |
links_md = ' '.join([f"[{emoji}]({url(gameterm)})" for emoji, url in search_urls.items()])
|
191 |
#links_md = ' '.join([f"[{emoji}]({url(term)})" for emoji, url in search_urls.items()])
|
192 |
+
#st.markdown(f"{term} {links_md}", unsafe_allow_html=True)
|
193 |
+
st.markdown(f"**{term}** <small>{links_md}</small>", unsafe_allow_html=True)
|
194 |
+
|
195 |
|
196 |
def display_glossary_entity(k):
|
197 |
search_urls = {
|
198 |
+
"πWiki": lambda k: f"https://en.wikipedia.org/wiki/{quote(k)}",
|
199 |
+
"πGoogle": lambda k: f"https://www.google.com/search?q={quote(k)}",
|
200 |
+
"βΆοΈYouTube": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
201 |
+
"πBing": lambda k: f"https://www.bing.com/search?q={quote(k)}",
|
202 |
+
"π₯YouTube": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
|
203 |
+
"π¦Twitter": lambda k: f"https://twitter.com/search?q={quote(k)}",
|
204 |
"ππArXiv": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}", # this url plus query!
|
205 |
+
"πAnalyst": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
|
206 |
+
"πPyCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
|
207 |
+
"π¬JSCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
|
208 |
}
|
209 |
links_md = ' '.join([f"[{emoji}]({url(k)})" for emoji, url in search_urls.items()])
|
210 |
+
#st.markdown(f"{k} {links_md}", unsafe_allow_html=True)
|
211 |
+
st.markdown(f"**{k}** <small>{links_md}</small>", unsafe_allow_html=True)
|
212 |
+
|
213 |
|
214 |
|
215 |
roleplaying_glossary = {
|
|
|
702 |
"πAnalyst": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
|
703 |
"πPyCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
|
704 |
"π¬JSCoder": lambda k: f"https://huggingface.co/spaces/awacke1/{Site_Name}?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
|
|
|
705 |
}
|
706 |
|
707 |
for category, details in roleplaying_glossary.items():
|