fdaudens HF Staff commited on
Commit
33651c9
·
verified ·
1 Parent(s): 0fce594

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ duck_spec = DuckDuckGoSearchToolSpec()
46
  search_tool = FunctionTool.from_defaults(duck_spec.duckduckgo_full_search)
47
 
48
  # Weather
49
- weather_spec = OpenWeatherMapToolSpec(key=OPENWEATHERMAP_KEY)
 
50
  weather_tool_spec = OpenWeatherMapToolSpec(key=openweather_api_key)
51
  weather_tool = FunctionTool.from_defaults(
52
  weather_tool_spec.weather_at_location,
 
46
  search_tool = FunctionTool.from_defaults(duck_spec.duckduckgo_full_search)
47
 
48
  # Weather
49
+ openweather_api_key=OPENWEATHERMAP_KEY
50
+ weather_tool_spec = OpenWeatherMapToolSpec(key=openweather_api_key)
51
  weather_tool_spec = OpenWeatherMapToolSpec(key=openweather_api_key)
52
  weather_tool = FunctionTool.from_defaults(
53
  weather_tool_spec.weather_at_location,