Segizu commited on
Commit
a5e1ed5
·
1 Parent(s): b648216

primer commit

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
@@ -42,6 +43,15 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
42
  custom_role_conversions=None,
43
  )
44
 
 
 
 
 
 
 
 
 
 
45
 
46
  # Import tool from Hub
47
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ from tools.web_search import DuckDuckGoSearchTool
8
 
9
  from Gradio_UI import GradioUI
10
 
 
43
  custom_role_conversions=None,
44
  )
45
 
46
+ final_answer = DuckDuckGoSearchTool()
47
+ model = HfApiModel(
48
+ max_tokens=2096,
49
+ temperature=0.1,
50
+ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
51
+ custom_role_conversions=None,
52
+ )
53
+
54
+
55
 
56
  # Import tool from Hub
57
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)