Spaces:
Sleeping
Sleeping
Zanqi commited on
Commit ·
d2c329e
1
Parent(s): 0c9ab8f
Add debug print statement in get_current_time_in_timezone and remove DuckDuckGoSearchTool from agent
Browse files
app.py
CHANGED
|
@@ -28,6 +28,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 28 |
Args:
|
| 29 |
timezone: A string representing a valid timezone (e.g., 'America/New_York').
|
| 30 |
"""
|
|
|
|
| 31 |
try:
|
| 32 |
# Create timezone object
|
| 33 |
tz = pytz.timezone(timezone)
|
|
@@ -62,7 +63,6 @@ agent = CodeAgent(
|
|
| 62 |
tools=[
|
| 63 |
final_answer,
|
| 64 |
get_current_time_in_timezone,
|
| 65 |
-
DuckDuckGoSearchTool(),
|
| 66 |
], ## add your tools here (don't remove final answer)
|
| 67 |
max_steps=6,
|
| 68 |
verbosity_level=1,
|
|
|
|
| 28 |
Args:
|
| 29 |
timezone: A string representing a valid timezone (e.g., 'America/New_York').
|
| 30 |
"""
|
| 31 |
+
print(f"Getting current time in timezone {timezone}")
|
| 32 |
try:
|
| 33 |
# Create timezone object
|
| 34 |
tz = pytz.timezone(timezone)
|
|
|
|
| 63 |
tools=[
|
| 64 |
final_answer,
|
| 65 |
get_current_time_in_timezone,
|
|
|
|
| 66 |
], ## add your tools here (don't remove final answer)
|
| 67 |
max_steps=6,
|
| 68 |
verbosity_level=1,
|