Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,21 +32,21 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 32 |
return f"The current local time in {timezone} is: {local_time}"
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
-
|
| 36 |
-
@tool
|
| 37 |
-
def get_property(location: str, title: str, count: int) -> str:
|
| 38 |
-
"""
|
| 39 |
-
A tool to that shows property.
|
| 40 |
-
Args:
|
| 41 |
-
location: The location where property is supposed to be searched
|
| 42 |
-
"""
|
| 43 |
-
try:
|
| 44 |
-
#
|
| 45 |
-
manyata_search = ManyataSearchTool.searchDb("property", title + location, count) #TODO: create the ManyataSearchTool under tools
|
| 46 |
-
search = DuckDuckGoSearchTool.forward(location)
|
| 47 |
-
return f"property at {location} is: {manyata_search} and on the web includes {search}"
|
| 48 |
-
except Exception as e:
|
| 49 |
-
return f"error fetching results for location '{location}': {str(e)}"
|
| 50 |
|
| 51 |
final_answer = FinalAnswerTool()
|
| 52 |
|
|
|
|
| 32 |
return f"The current local time in {timezone} is: {local_time}"
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
+
#
|
| 36 |
+
#@tool
|
| 37 |
+
#def get_property(location: str, title: str, count: int) -> str:
|
| 38 |
+
# """
|
| 39 |
+
# A tool to that shows property.
|
| 40 |
+
# Args:
|
| 41 |
+
# location: The location where property is supposed to be searched
|
| 42 |
+
# """
|
| 43 |
+
# try:
|
| 44 |
+
# #
|
| 45 |
+
# manyata_search = ManyataSearchTool.searchDb("property", title + location, count) #TODO: create the ManyataSearchTool under tools
|
| 46 |
+
# search = DuckDuckGoSearchTool.forward(location)
|
| 47 |
+
# return f"property at {location} is: {manyata_search} and on the web includes {search}"
|
| 48 |
+
# except Exception as e:
|
| 49 |
+
# return f"error fetching results for location '{location}': {str(e)}"
|
| 50 |
|
| 51 |
final_answer = FinalAnswerTool()
|
| 52 |
|