Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -262,6 +262,9 @@ def create_search_url_google(keyword):
|
|
262 |
base_url = "https://www.google.com/search?q="
|
263 |
return base_url + keyword.replace(' ', '+')
|
264 |
|
|
|
|
|
|
|
265 |
|
266 |
def display_images_and_wikipedia_summaries():
|
267 |
st.title('Gallery with Related Stories')
|
@@ -281,12 +284,15 @@ def display_images_and_wikipedia_summaries():
|
|
281 |
google_url = create_search_url_google(keyword)
|
282 |
youtube_url = create_search_url_youtube(keyword)
|
283 |
bing_url = create_search_url_bing(keyword)
|
|
|
|
|
284 |
|
285 |
links_md = f"""
|
286 |
[Wikipedia]({wikipedia_url}) |
|
287 |
[Google]({google_url}) |
|
288 |
[YouTube]({youtube_url}) |
|
289 |
-
[Bing]({bing_url})
|
|
|
290 |
"""
|
291 |
st.markdown("""🔗""" + links_md)
|
292 |
|
|
|
262 |
base_url = "https://www.google.com/search?q="
|
263 |
return base_url + keyword.replace(' ', '+')
|
264 |
|
265 |
+
def create_search_url_ai(keyword):
|
266 |
+
base_url = "https://huggingface.co/spaces/awacke1/MixableCardGameAI?q="
|
267 |
+
return base_url + keyword.replace(' ', '+')
|
268 |
|
269 |
def display_images_and_wikipedia_summaries():
|
270 |
st.title('Gallery with Related Stories')
|
|
|
284 |
google_url = create_search_url_google(keyword)
|
285 |
youtube_url = create_search_url_youtube(keyword)
|
286 |
bing_url = create_search_url_bing(keyword)
|
287 |
+
ai_url = create_search_url_ai(keyword)
|
288 |
+
|
289 |
|
290 |
links_md = f"""
|
291 |
[Wikipedia]({wikipedia_url}) |
|
292 |
[Google]({google_url}) |
|
293 |
[YouTube]({youtube_url}) |
|
294 |
+
[Bing]({bing_url}) |
|
295 |
+
[AI]({ai_url})
|
296 |
"""
|
297 |
st.markdown("""🔗""" + links_md)
|
298 |
|