jaidesign commited on
Commit
d4d8947
·
verified ·
1 Parent(s): 623c635

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -33,18 +33,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
- @tool
37
- # Code Agent Example: Retrieve Weather Information
38
- def get_weather(city):
39
- import requests
40
- url = f"https://www.weather.com/v1/location/{city}"
41
- response = requests.get(url)
42
- if response.status_code == 200:
43
- data = response.json()
44
- return data.get("weather", "No weather information available")
45
- else:
46
- return "Error: Unable to fetch weather data."
47
-
48
 
49
  final_answer = FinalAnswerTool()
50
 
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  final_answer = FinalAnswerTool()
38