awacke1 commited on
Commit
c00f5a3
β€’
1 Parent(s): 240fc09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -138,10 +138,10 @@ def display_glossary_grid(roleplaying_glossary):
138
  "▢️": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
139
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
140
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
141
- "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}", # this url plus query!
142
- "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
143
- "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
144
- "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
145
  }
146
 
147
  for category, details in roleplaying_glossary.items():
@@ -163,10 +163,10 @@ def display_glossary_entity(k):
163
  "▢️": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
164
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
165
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
166
- "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}", # this url plus query!
167
- "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
168
- "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
169
- "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/WordGameAI?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
170
  }
171
  links_md = ' '.join([f"[{emoji}]({url(k)})" for emoji, url in search_urls.items()])
172
  st.markdown(f"{k} {links_md}", unsafe_allow_html=True)
 
138
  "▢️": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
139
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
140
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
141
+ "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}", # this url plus query!
142
+ "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
143
+ "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
144
+ "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
145
  }
146
 
147
  for category, details in roleplaying_glossary.items():
 
163
  "▢️": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
164
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
165
  "🐦": lambda k: f"https://twitter.com/search?q={quote(k)}",
166
+ "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}", # this url plus query!
167
+ "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}-{quote(PromptPrefix)}", # this url plus query!
168
+ "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}-{quote(PromptPrefix2)}", # this url plus query!
169
+ "πŸ”¬": lambda k: f"https://huggingface.co/spaces/awacke1/Arxiv-Paper-Search-QA-RAG-Streamlit-Gradio-API?q={quote(k)}-{quote(PromptPrefix3)}", # this url plus query!
170
  }
171
  links_md = ' '.join([f"[{emoji}]({url(k)})" for emoji, url in search_urls.items()])
172
  st.markdown(f"{k} {links_md}", unsafe_allow_html=True)