Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,10 +80,10 @@ def web_search(query: str) -> str:
|
|
| 80 |
if isinstance(search_results, list) and len(search_results) > 0:
|
| 81 |
return {search_results[0]}"
|
| 82 |
|
| 83 |
-
return f"Could not find {
|
| 84 |
|
| 85 |
except Exception as e:
|
| 86 |
-
return f"Error finding '{
|
| 87 |
|
| 88 |
|
| 89 |
|
|
|
|
| 80 |
if isinstance(search_results, list) and len(search_results) > 0:
|
| 81 |
return {search_results[0]}"
|
| 82 |
|
| 83 |
+
return f"Could not find {query}. Please try again."
|
| 84 |
|
| 85 |
except Exception as e:
|
| 86 |
+
return f"Error finding '{query}': {str(e)}"
|
| 87 |
|
| 88 |
|
| 89 |
|