Spaces:
Sleeping
Sleeping
Initialize DuckDuckGoSearchTool instance
Browse files
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')
|