Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -327,6 +327,9 @@ def create_search_url_google(keyword):
|
|
327 |
base_url = "https://www.google.com/search?q="
|
328 |
return base_url + keyword.replace(' ', '+')
|
329 |
|
|
|
|
|
|
|
330 |
|
331 |
def display_images_and_wikipedia_summaries():
|
332 |
st.title('Gallery with Related Stories')
|
@@ -346,12 +349,15 @@ def display_images_and_wikipedia_summaries():
|
|
346 |
google_url = create_search_url_google(keyword)
|
347 |
youtube_url = create_search_url_youtube(keyword)
|
348 |
bing_url = create_search_url_bing(keyword)
|
|
|
|
|
349 |
|
350 |
links_md = f"""
|
351 |
[Wikipedia]({wikipedia_url}) |
|
352 |
[Google]({google_url}) |
|
353 |
[YouTube]({youtube_url}) |
|
354 |
-
[Bing]({bing_url})
|
|
|
355 |
"""
|
356 |
st.markdown(links_md)
|
357 |
|
@@ -1120,6 +1126,7 @@ def main():
|
|
1120 |
st.markdown('No glossary lookup')
|
1121 |
|
1122 |
# Display the glossary grid
|
|
|
1123 |
st.title("Body Map Glossary 🎲")
|
1124 |
display_glossary_grid(body_map_data)
|
1125 |
st.title("🎲🗺️ Body Map Conditions")
|
@@ -1127,7 +1134,6 @@ def main():
|
|
1127 |
|
1128 |
display_buttons_with_scores()
|
1129 |
|
1130 |
-
display_images_and_wikipedia_summaries()
|
1131 |
|
1132 |
# Assuming the transhuman_glossary and other setup code remains the same
|
1133 |
#st.write("Current Query Parameters:", st.query_params)
|
|
|
327 |
base_url = "https://www.google.com/search?q="
|
328 |
return base_url + keyword.replace(' ', '+')
|
329 |
|
330 |
+
def create_search_url_ai(keyword):
|
331 |
+
base_url = "https://huggingface.co/spaces/awacke1/MixableBodyMapConditionAI?q="
|
332 |
+
return base_url + keyword.replace(' ', '+')
|
333 |
|
334 |
def display_images_and_wikipedia_summaries():
|
335 |
st.title('Gallery with Related Stories')
|
|
|
349 |
google_url = create_search_url_google(keyword)
|
350 |
youtube_url = create_search_url_youtube(keyword)
|
351 |
bing_url = create_search_url_bing(keyword)
|
352 |
+
ai_url = create_search_url_ai(keyword)
|
353 |
+
|
354 |
|
355 |
links_md = f"""
|
356 |
[Wikipedia]({wikipedia_url}) |
|
357 |
[Google]({google_url}) |
|
358 |
[YouTube]({youtube_url}) |
|
359 |
+
[Bing]({bing_url}) |
|
360 |
+
[AI]({ai_url})
|
361 |
"""
|
362 |
st.markdown(links_md)
|
363 |
|
|
|
1126 |
st.markdown('No glossary lookup')
|
1127 |
|
1128 |
# Display the glossary grid
|
1129 |
+
display_images_and_wikipedia_summaries()
|
1130 |
st.title("Body Map Glossary 🎲")
|
1131 |
display_glossary_grid(body_map_data)
|
1132 |
st.title("🎲🗺️ Body Map Conditions")
|
|
|
1134 |
|
1135 |
display_buttons_with_scores()
|
1136 |
|
|
|
1137 |
|
1138 |
# Assuming the transhuman_glossary and other setup code remains the same
|
1139 |
#st.write("Current Query Parameters:", st.query_params)
|