Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,14 @@ from tools.final_answer import FinalAnswerTool
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
|
|
|
|
10 |
|
11 |
from typing import Optional, Dict, Any
|
12 |
import requests
|
13 |
from pydantic import BaseModel, Field, validator
|
14 |
|
|
|
15 |
class PDOKLocationSearchInput(BaseModel):
|
16 |
"""Input for the PDOK location search tool."""
|
17 |
postal_code: Optional[str] = Field(None, description="Postal code in the format '1234 AA'.")
|
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
+
from typing import Optional, Dict, Any
|
11 |
+
from pydantic import BaseModel, Field, validator
|
12 |
|
13 |
from typing import Optional, Dict, Any
|
14 |
import requests
|
15 |
from pydantic import BaseModel, Field, validator
|
16 |
|
17 |
+
# No change to PDOKLocationSearchInput needed, as it *was* correctly defined
|
18 |
class PDOKLocationSearchInput(BaseModel):
|
19 |
"""Input for the PDOK location search tool."""
|
20 |
postal_code: Optional[str] = Field(None, description="Postal code in the format '1234 AA'.")
|