cengizasmazoglu commited on
Commit
bee6faa
·
verified ·
1 Parent(s): c654ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -18,11 +18,15 @@ def get_location_name_from_lat_lon(lat: int, lon: int) -> str:
18
  lon: longitude of the location
19
  """
20
  # Example: call a reverse geocoding API
21
- response = requests.get(f"https://api.example.com/reverse?lat={lat}&lon={lon}")
22
- if response.ok:
23
- data = response.json()
24
- return data.get("location", "Unknown location")
25
- return "Error retrieving location"
 
 
 
 
26
 
27
  @tool
28
  def get_current_time_in_timezone(timezone: str) -> str:
 
18
  lon: longitude of the location
19
  """
20
  # Example: call a reverse geocoding API
21
+ #response = requests.get(f"https://api.example.com/reverse?lat={lat}&lon={lon}")
22
+
23
+ geocoding_data = {
24
+ (45, 44): "Chisiguihnau, Moldova"
25
+ }
26
+
27
+
28
+
29
+ return geocoding_data[(45,44)]
30
 
31
  @tool
32
  def get_current_time_in_timezone(timezone: str) -> str: