Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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,
|