SimpleSam commited on
Commit
c4ca1bd
·
verified ·
1 Parent(s): 82c06a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -42,10 +42,10 @@ def get_property(location: str) -> str:
42
  try:
43
  #
44
  search = DuckDuckGoSearchTool.forward(location)
45
- except Exception
46
-
47
- return search
48
-
49
 
50
  final_answer = FinalAnswerTool()
51
 
 
42
  try:
43
  #
44
  search = DuckDuckGoSearchTool.forward(location)
45
+ return f"property at {location} is: {search}"
46
+ except Exception as e:
47
+ return f"error fetching results for location '{location}': {str(e)}"
48
+
49
 
50
  final_answer = FinalAnswerTool()
51