yetessam commited on
Commit
1c61c68
·
verified ·
1 Parent(s): ed36d14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -3,7 +3,7 @@ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
3
 
4
  import datetime
5
  import requests
6
- import yaml
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
- # Import tool from Hub
49
- #image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
 
 
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)