Vaqash commited on
Commit
bf496b6
·
verified ·
1 Parent(s): a59de76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,13 +1,15 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
 
2
  import datetime
3
  import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  from Gradio_UI import GradioUI
 
8
 
9
  # 🔑 Define your API key here
10
- OPENWEATHER_API_KEY = Weatherapi # Replace with your real OpenWeatherMap API key
11
 
12
  # 🌤️ Weather Tool
13
  @tool
 
1
+ from smolagents import CodeAgent, DuckDuckGoSearchTool,
2
+ HfApiModel, load_tool, tool
3
  import datetime
4
  import requests
5
  import pytz
6
  import yaml
7
  from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
+ import os
10
 
11
  # 🔑 Define your API key here
12
+ OPENWEATHER_API_KEY = os.environ.get("Weatherapi") # Replace with your real OpenWeatherMap API key
13
 
14
  # 🌤️ Weather Tool
15
  @tool