danielkorat commited on
Commit
c4ec83a
·
verified ·
1 Parent(s): afb3db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -1,20 +1,15 @@
1
  from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool
 
 
 
2
  import datetime
3
  import requests
4
  import pytz
5
  import yaml
6
- from tools.final_answer import FinalAnswerTool
7
- from tools import *
8
-
9
- from Gradio_UI import GradioUI
10
-
11
-
12
  from typing import Optional
13
 
14
- import requests
15
 
16
- # from smolagents.agents import ToolCallingAgent
17
- from smolagents import CodeAgent, HfApiModel
18
 
19
 
20
  # Choose which LLM engine to use!
@@ -24,7 +19,6 @@ model = HfApiModel()
24
  # For anthropic: change model_id below to 'anthropic/claude-3-5-sonnet-20240620'
25
  # model = LiteLLMModel(model_id="gt-4o")
26
 
27
-
28
  # If the agent does not answer, the model is overloaded, please use another model or the original Hugging Face Endpoint for contains qwen2.5 coder:
29
  # 'Qwen/Qwen2.5-Coder-32B-Instruct'
30
  model = HfApiModel(
 
1
  from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool
2
+ from smolagents.tools.final_answer import FinalAnswerTool
3
+ from Gradio_UI import GradioUI
4
+
5
  import datetime
6
  import requests
7
  import pytz
8
  import yaml
 
 
 
 
 
 
9
  from typing import Optional
10
 
11
+ from my_tools import *
12
 
 
 
13
 
14
 
15
  # Choose which LLM engine to use!
 
19
  # For anthropic: change model_id below to 'anthropic/claude-3-5-sonnet-20240620'
20
  # model = LiteLLMModel(model_id="gt-4o")
21
 
 
22
  # If the agent does not answer, the model is overloaded, please use another model or the original Hugging Face Endpoint for contains qwen2.5 coder:
23
  # 'Qwen/Qwen2.5-Coder-32B-Instruct'
24
  model = HfApiModel(