cjb97 commited on
Commit
972fb5d
·
1 Parent(s): 0979e1c

Initialize DuckDuckGoSearchTool instance

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -53,6 +53,7 @@ def get_weather(location: str) -> str:
53
  return f"Error fetching weather for {location}: {str(e)}"
54
 
55
  final_answer = FinalAnswerTool()
 
56
 
57
  # Get the Hugging Face token from environment variable
58
  hf_token = os.getenv('HUGGINGFACE_TOKEN')
 
53
  return f"Error fetching weather for {location}: {str(e)}"
54
 
55
  final_answer = FinalAnswerTool()
56
+ duck_duck_go_search = DuckDuckGoSearchTool()
57
 
58
  # Get the Hugging Face token from environment variable
59
  hf_token = os.getenv('HUGGINGFACE_TOKEN')