Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -229,6 +229,9 @@ def create_search_url_google(keyword):
|
|
229 |
base_url = "https://www.google.com/search?q="
|
230 |
return base_url + keyword.replace(' ', '+')
|
231 |
|
|
|
|
|
|
|
232 |
|
233 |
def display_images_and_wikipedia_summaries():
|
234 |
st.title('Gallery with Related Stories')
|
@@ -248,12 +251,15 @@ def display_images_and_wikipedia_summaries():
|
|
248 |
google_url = create_search_url_google(keyword)
|
249 |
youtube_url = create_search_url_youtube(keyword)
|
250 |
bing_url = create_search_url_bing(keyword)
|
|
|
|
|
251 |
|
252 |
links_md = f"""
|
253 |
[Wikipedia]({wikipedia_url}) |
|
254 |
[Google]({google_url}) |
|
255 |
[YouTube]({youtube_url}) |
|
256 |
-
[Bing]({bing_url})
|
|
|
257 |
"""
|
258 |
st.markdown(links_md)
|
259 |
|
@@ -1240,6 +1246,11 @@ def main():
|
|
1240 |
st.markdown('No glossary lookup')
|
1241 |
|
1242 |
# Display the glossary grid
|
|
|
|
|
|
|
|
|
|
|
1243 |
st.title("SciFi Glossary 🌌")
|
1244 |
display_glossary_grid(transhuman_glossary)
|
1245 |
|
@@ -1248,8 +1259,6 @@ def main():
|
|
1248 |
|
1249 |
display_buttons_with_scores()
|
1250 |
|
1251 |
-
display_images_and_wikipedia_summaries()
|
1252 |
-
|
1253 |
# Assuming the transhuman_glossary and other setup code remains the same
|
1254 |
#st.write("Current Query Parameters:", st.query_params)
|
1255 |
#st.markdown("### Query Parameters - These Deep Link Map to Remixable Methods, Navigate or Trigger Functionalities")
|
|
|
229 |
base_url = "https://www.google.com/search?q="
|
230 |
return base_url + keyword.replace(' ', '+')
|
231 |
|
232 |
+
def create_search_url_ai(keyword):
|
233 |
+
base_url = "https://huggingface.co/spaces/awacke1/MixableScifiAI?q="
|
234 |
+
return base_url + keyword.replace(' ', '+')
|
235 |
|
236 |
def display_images_and_wikipedia_summaries():
|
237 |
st.title('Gallery with Related Stories')
|
|
|
251 |
google_url = create_search_url_google(keyword)
|
252 |
youtube_url = create_search_url_youtube(keyword)
|
253 |
bing_url = create_search_url_bing(keyword)
|
254 |
+
ai_url = create_search_url_ai(keyword)
|
255 |
+
|
256 |
|
257 |
links_md = f"""
|
258 |
[Wikipedia]({wikipedia_url}) |
|
259 |
[Google]({google_url}) |
|
260 |
[YouTube]({youtube_url}) |
|
261 |
+
[Bing]({bing_url}) |
|
262 |
+
[AI]({ai_url})
|
263 |
"""
|
264 |
st.markdown(links_md)
|
265 |
|
|
|
1246 |
st.markdown('No glossary lookup')
|
1247 |
|
1248 |
# Display the glossary grid
|
1249 |
+
|
1250 |
+
|
1251 |
+
display_images_and_wikipedia_summaries()
|
1252 |
+
|
1253 |
+
|
1254 |
st.title("SciFi Glossary 🌌")
|
1255 |
display_glossary_grid(transhuman_glossary)
|
1256 |
|
|
|
1259 |
|
1260 |
display_buttons_with_scores()
|
1261 |
|
|
|
|
|
1262 |
# Assuming the transhuman_glossary and other setup code remains the same
|
1263 |
#st.write("Current Query Parameters:", st.query_params)
|
1264 |
#st.markdown("### Query Parameters - These Deep Link Map to Remixable Methods, Navigate or Trigger Functionalities")
|