Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,10 +106,6 @@ def pdok_location_info(postal_code: Optional[str] = None, house_number: Optional
|
|
| 106 |
|
| 107 |
# Add more features as needed, such as geocoding, reverse geocoding, and caching
|
| 108 |
return location_info
|
| 109 |
-
except requests.exceptions.RequestException as e:
|
| 110 |
-
return f"Error during API request: {e}"
|
| 111 |
-
except (ValueError, KeyError) as e:
|
| 112 |
-
return f"Error processing API response: {e}"
|
| 113 |
|
| 114 |
@tool
|
| 115 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
|
|
|
| 106 |
|
| 107 |
# Add more features as needed, such as geocoding, reverse geocoding, and caching
|
| 108 |
return location_info
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
@tool
|
| 111 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|