awacke1 commited on
Commit
2ae05eb
·
verified ·
1 Parent(s): c000301

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -314,6 +314,9 @@ def create_search_url_google(keyword):
314
  base_url = "https://www.google.com/search?q="
315
  return base_url + keyword.replace(' ', '+')
316
 
 
 
 
317
 
318
  def display_images_and_wikipedia_summaries():
319
  st.title('Gallery with Related Stories')
@@ -333,12 +336,15 @@ def display_images_and_wikipedia_summaries():
333
  google_url = create_search_url_google(keyword)
334
  youtube_url = create_search_url_youtube(keyword)
335
  bing_url = create_search_url_bing(keyword)
 
 
336
 
337
  links_md = f"""
338
  [Wikipedia]({wikipedia_url}) |
339
  [Google]({google_url}) |
340
  [YouTube]({youtube_url}) |
341
- [Bing]({bing_url})
 
342
  """
343
  st.markdown(links_md)
344
 
@@ -1317,14 +1323,14 @@ def main():
1317
 
1318
 
1319
  # Display the glossary grid
1320
- st.title("Roleplaying Games Glossary 🎲")
 
1321
  display_glossary_grid(roleplaying_glossary)
1322
  st.title("🎲🗺️ Roleplaying Game Universe")
1323
  st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
1324
 
1325
  display_buttons_with_scores()
1326
 
1327
- display_images_and_wikipedia_summaries()
1328
 
1329
  # Assuming the transhuman_glossary and other setup code remains the same
1330
  #st.write("Current Query Parameters:", st.query_params)
 
314
  base_url = "https://www.google.com/search?q="
315
  return base_url + keyword.replace(' ', '+')
316
 
317
+ def create_search_url_ai(keyword):
318
+ base_url = "https://huggingface.co/spaces/awacke1/MixableRolePlayAI?q="
319
+ return base_url + keyword.replace(' ', '+')
320
 
321
  def display_images_and_wikipedia_summaries():
322
  st.title('Gallery with Related Stories')
 
336
  google_url = create_search_url_google(keyword)
337
  youtube_url = create_search_url_youtube(keyword)
338
  bing_url = create_search_url_bing(keyword)
339
+ ai_url = create_search_url_ai(keyword)
340
+
341
 
342
  links_md = f"""
343
  [Wikipedia]({wikipedia_url}) |
344
  [Google]({google_url}) |
345
  [YouTube]({youtube_url}) |
346
+ [Bing]({bing_url}) |
347
+ [AI]({ai_url})
348
  """
349
  st.markdown(links_md)
350
 
 
1323
 
1324
 
1325
  # Display the glossary grid
1326
+ st.title("Roleplaying Games 🎲")
1327
+ display_images_and_wikipedia_summaries()
1328
  display_glossary_grid(roleplaying_glossary)
1329
  st.title("🎲🗺️ Roleplaying Game Universe")
1330
  st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
1331
 
1332
  display_buttons_with_scores()
1333
 
 
1334
 
1335
  # Assuming the transhuman_glossary and other setup code remains the same
1336
  #st.write("Current Query Parameters:", st.query_params)