Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def search_web(topic: str) -> str:
|
|
| 57 |
"""Retrieves information about the topic."""
|
| 58 |
results = DuckDuckGoSearchRun().invoke(topic)
|
| 59 |
if results:
|
| 60 |
-
return "\n\n".join([doc.text for doc in results[:
|
| 61 |
else:
|
| 62 |
return "No matching content found."
|
| 63 |
|
|
|
|
| 57 |
"""Retrieves information about the topic."""
|
| 58 |
results = DuckDuckGoSearchRun().invoke(topic)
|
| 59 |
if results:
|
| 60 |
+
return "\n\n".join([doc.text for doc in results[:10]])
|
| 61 |
else:
|
| 62 |
return "No matching content found."
|
| 63 |
|