SnowHA commited on
Commit
9b0f166
·
verified ·
1 Parent(s): a0fd3c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,6 +7,11 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
 
 
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
@@ -42,7 +47,7 @@ final_answer = FinalAnswerTool()
42
  model = HfApiModel(
43
  max_tokens=2096,
44
  temperature=0.5,
45
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
46
  custom_role_conversions=None,
47
  )
48
 
 
7
 
8
  from Gradio_UI import GradioUI
9
 
10
+ final_answer = FinalAnswerTool()
11
+ visit_webpage = VisitWebpageTool()
12
+ web_search = DuckDuckGoSearchTool()
13
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
14
+
15
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
16
  @tool
17
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
 
47
  model = HfApiModel(
48
  max_tokens=2096,
49
  temperature=0.5,
50
+ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
51
  custom_role_conversions=None,
52
  )
53