Spaces:
Sleeping
Sleeping
Migrate SERPent endpoints (#1)
Browse files- Migrate SERPent endpoints (94b9cd34a465d1014ef6759e1b5d6a76f054ae55)
Co-authored-by: Lucas A <[email protected]>
app.py
CHANGED
@@ -185,7 +185,7 @@ def ask_ollama(user_message, model='llama-3.3-70b-versatile', system_prompt=sear
|
|
185 |
# Using Brave Search API
|
186 |
def search_web(topic, max_references=5, data_type="pdf"):
|
187 |
"""Search the web using the Brave API and return results."""
|
188 |
-
url = "https://
|
189 |
payload = {
|
190 |
"queries": [topic],
|
191 |
"n_results": max_references
|
|
|
185 |
# Using Brave Search API
|
186 |
def search_web(topic, max_references=5, data_type="pdf"):
|
187 |
"""Search the web using the Brave API and return results."""
|
188 |
+
url = "https://organizedprogrammers-serpent.hf.space/serp/search"
|
189 |
payload = {
|
190 |
"queries": [topic],
|
191 |
"n_results": max_references
|