Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,11 +17,8 @@ def crypto_duck(addr: str) -> str:
|
|
| 17 |
try:
|
| 18 |
ddg = DuckDuckGoSearchTool(max_results=1)
|
| 19 |
query = f'cryptocurrency address "{addr}"'
|
| 20 |
-
markdown_results = ddg(query)
|
| 21 |
-
|
| 22 |
-
if markdown_results.startswith("## Search Results"):
|
| 23 |
-
markdown_results = markdown_results.split("\n\n", 1)[-1]
|
| 24 |
-
return markdown_results or "No results found."
|
| 25 |
except Exception as e:
|
| 26 |
return f"Search error: {str(e)}"
|
| 27 |
|
|
|
|
| 17 |
try:
|
| 18 |
ddg = DuckDuckGoSearchTool(max_results=1)
|
| 19 |
query = f'cryptocurrency address "{addr}"'
|
| 20 |
+
markdown_results = ddg(query)
|
| 21 |
+
return markdown_results
|
|
|
|
|
|
|
|
|
|
| 22 |
except Exception as e:
|
| 23 |
return f"Search error: {str(e)}"
|
| 24 |
|