Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,10 @@ def DuckDuckGoSearchTool(query_string:str,max_results:int) -> str: #it's import
|
|
| 24 |
timelimit=None,
|
| 25 |
max_results=max_results
|
| 26 |
)
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
return "What magic will you build ?"
|
| 30 |
|
|
|
|
| 24 |
timelimit=None,
|
| 25 |
max_results=max_results
|
| 26 |
)
|
| 27 |
+
return results
|
| 28 |
+
|
| 29 |
+
except Exception as e:
|
| 30 |
+
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 31 |
|
| 32 |
return "What magic will you build ?"
|
| 33 |
|