Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,12 +24,9 @@ def DuckDuckGoSearchTool(query_string:str,max_results:int) -> str: #it's import
|
|
| 24 |
timelimit=None,
|
| 25 |
max_results=max_results
|
| 26 |
)
|
| 27 |
-
|
| 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 |
|
| 34 |
@tool
|
| 35 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 24 |
timelimit=None,
|
| 25 |
max_results=max_results
|
| 26 |
)
|
| 27 |
+
return results
|
|
|
|
| 28 |
except Exception as e:
|
| 29 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
|
|
|
|
|
|
| 30 |
|
| 31 |
@tool
|
| 32 |
def get_current_time_in_timezone(timezone: str) -> str:
|