Spaces:
Sleeping
Sleeping
fix2
Browse files
app.py
CHANGED
@@ -33,11 +33,9 @@ def get_search_results(query:str, num_results:int)-> str: #it's import to specif
|
|
33 |
return first_part_of_answer+last_part_of_answer
|
34 |
|
35 |
except Exception as e:
|
36 |
-
|
37 |
|
38 |
|
39 |
-
print(results)
|
40 |
-
|
41 |
@tool
|
42 |
def get_current_time_in_timezone(timezone: str) -> str:
|
43 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
33 |
return first_part_of_answer+last_part_of_answer
|
34 |
|
35 |
except Exception as e:
|
36 |
+
return(f"An error occurred: {e}")
|
37 |
|
38 |
|
|
|
|
|
39 |
@tool
|
40 |
def get_current_time_in_timezone(timezone: str) -> str:
|
41 |
"""A tool that fetches the current local time in a specified timezone.
|