reddmann007 commited on
Commit
28539d0
·
verified ·
1 Parent(s): c761346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ class DistanceInput(BaseModel):
15
  p_lat: float = Field(description="Latitude of the pharmacy")
16
  p_lon: float = Field(description="Longitude of the pharmacy")
17
 
18
- @root_validator
19
  def validate_coords(cls, values):
20
  """Manually enforces coordinate boundaries to prevent hallucinations."""
21
  lat, lon = values.get("p_lat"), values.get("p_lon")
 
15
  p_lat: float = Field(description="Latitude of the pharmacy")
16
  p_lon: float = Field(description="Longitude of the pharmacy")
17
 
18
+ @root_validator(allow_reuse=True)
19
  def validate_coords(cls, values):
20
  """Manually enforces coordinate boundaries to prevent hallucinations."""
21
  lat, lon = values.get("p_lat"), values.get("p_lon")