awacke1 commited on
Commit
c10ecc1
1 Parent(s): fd80250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -268,6 +268,9 @@ def create_search_url_google(keyword):
268
  base_url = "https://www.google.com/search?q="
269
  return base_url + keyword.replace(' ', '+')
270
 
 
 
 
271
 
272
  def display_images_and_wikipedia_summaries():
273
  st.title('Gallery with Related Stories')
@@ -287,12 +290,15 @@ def display_images_and_wikipedia_summaries():
287
  google_url = create_search_url_google(keyword)
288
  youtube_url = create_search_url_youtube(keyword)
289
  bing_url = create_search_url_bing(keyword)
 
 
290
 
291
  links_md = f"""
292
  [Wikipedia]({wikipedia_url}) |
293
  [Google]({google_url}) |
294
  [YouTube]({youtube_url}) |
295
- [Bing]({bing_url})
 
296
  """
297
  st.markdown(links_md)
298
 
@@ -1282,14 +1288,14 @@ def main():
1282
  st.markdown('No glossary lookup')
1283
 
1284
  # Display the glossary grid
1285
- st.title("Word Games Glossary 🎲")
 
1286
  display_glossary_grid(roleplaying_glossary)
1287
  st.title("🎲🗺️ Word Game Universe")
1288
  st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
1289
 
1290
  display_buttons_with_scores()
1291
 
1292
- display_images_and_wikipedia_summaries()
1293
 
1294
  # Assuming the transhuman_glossary and other setup code remains the same
1295
  #st.write("Current Query Parameters:", st.query_params)
 
268
  base_url = "https://www.google.com/search?q="
269
  return base_url + keyword.replace(' ', '+')
270
 
271
+ def create_search_url_ai(keyword):
272
+ base_url = "https://huggingface.co/spaces/awacke1/MixableWordGameAI?q="
273
+ return base_url + keyword.replace(' ', '+')
274
 
275
  def display_images_and_wikipedia_summaries():
276
  st.title('Gallery with Related Stories')
 
290
  google_url = create_search_url_google(keyword)
291
  youtube_url = create_search_url_youtube(keyword)
292
  bing_url = create_search_url_bing(keyword)
293
+ ai_url = create_search_url_ai(keyword)
294
+
295
 
296
  links_md = f"""
297
  [Wikipedia]({wikipedia_url}) |
298
  [Google]({google_url}) |
299
  [YouTube]({youtube_url}) |
300
+ [Bing]({bing_url}) |
301
+ [AI]({ai_url})
302
  """
303
  st.markdown(links_md)
304
 
 
1288
  st.markdown('No glossary lookup')
1289
 
1290
  # Display the glossary grid
1291
+ st.title("Word Games 🎲")
1292
+ display_images_and_wikipedia_summaries()
1293
  display_glossary_grid(roleplaying_glossary)
1294
  st.title("🎲🗺️ Word Game Universe")
1295
  st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
1296
 
1297
  display_buttons_with_scores()
1298
 
 
1299
 
1300
  # Assuming the transhuman_glossary and other setup code remains the same
1301
  #st.write("Current Query Parameters:", st.query_params)