HSinghHuggingFace commited on
Commit
e2f7c74
·
1 Parent(s): bb041f4

change title

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -3,6 +3,10 @@ import datetime
3
  import requests
4
  import pytz
5
  import yaml
 
 
 
 
6
  from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
@@ -38,7 +42,7 @@ final_answer = FinalAnswerTool()
38
  model = HfApiModel(
39
  max_tokens=2096,
40
  temperature=0.5,
41
- model_id='meta-llama/Llama-3.2-3B-Instruct',# it is possible that this model may be overloaded
42
  custom_role_conversions=None,
43
  )
44
 
@@ -51,7 +55,7 @@ with open("prompts.yaml", 'r') as stream:
51
 
52
  agent = CodeAgent(
53
  model=model,
54
- tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
55
  max_steps=6,
56
  verbosity_level=1,
57
  grammar=None,
 
3
  import requests
4
  import pytz
5
  import yaml
6
+ # Load model directly
7
+ from transformers import AutoModelForCausalLM
8
+
9
+ from tools import visit_webpage, web_search
10
  from tools.final_answer import FinalAnswerTool
11
 
12
  from Gradio_UI import GradioUI
 
42
  model = HfApiModel(
43
  max_tokens=2096,
44
  temperature=0.5,
45
+ model_id='deepseek-ai/DeepSeek-R1',
46
  custom_role_conversions=None,
47
  )
48
 
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[final_answer, visit_webpage, web_search], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,