Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
|
| 3 |
|
| 4 |
import datetime
|
| 5 |
import requests
|
| 6 |
-
|
| 7 |
import os
|
| 8 |
import pytz # Had to give it permission in Code agent
|
| 9 |
|
|
@@ -45,15 +45,15 @@ model = LiteLLMModel(
|
|
| 45 |
)
|
| 46 |
|
| 47 |
'''
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# Load prompts
|
| 52 |
combined_prompts = load_prompts()
|
| 53 |
|
| 54 |
-
|
| 55 |
-
# web_search, visit_webpage
|
| 56 |
-
'''
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
tools=[final_answer, polite_guard, web_search, get_the_current_time_in_timezone ], ## add your tools here (don't remove final answer)
|
|
|
|
| 3 |
|
| 4 |
import datetime
|
| 5 |
import requests
|
| 6 |
+
|
| 7 |
import os
|
| 8 |
import pytz # Had to give it permission in Code agent
|
| 9 |
|
|
|
|
| 45 |
)
|
| 46 |
|
| 47 |
'''
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
'''
|
| 53 |
|
| 54 |
# Load prompts
|
| 55 |
combined_prompts = load_prompts()
|
| 56 |
|
|
|
|
|
|
|
|
|
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
tools=[final_answer, polite_guard, web_search, get_the_current_time_in_timezone ], ## add your tools here (don't remove final answer)
|