Sonu313131 commited on
Commit
2ba19e9
·
verified ·
1 Parent(s): c80c694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -28,6 +28,8 @@ class BasicAgent:
28
  print(f"Agent returning fixed answer: {fixed_answer}")
29
  return fixed_answer
30
 
 
 
31
  token = os.getenv("apitoken")
32
  def run_and_submit_all(profile: gr.OAuthProfile | None):
33
  """
@@ -37,8 +39,8 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
37
  # 1. Instantiate Agent (modify this part to create your agent)
38
  try:
39
  agent = CodeAgent(
40
- tools=[DuckDuckGoSearchTool()],
41
- model=HfApiModel("mistralai/Mistral-7B-Instruct-v0.3"),
42
  max_steps=5,
43
  verbosity_level=2
44
  )
 
28
  print(f"Agent returning fixed answer: {fixed_answer}")
29
  return fixed_answer
30
 
31
+ search_tool = DuckDuckGoSearchTool()
32
+
33
  token = os.getenv("apitoken")
34
  def run_and_submit_all(profile: gr.OAuthProfile | None):
35
  """
 
39
  # 1. Instantiate Agent (modify this part to create your agent)
40
  try:
41
  agent = CodeAgent(
42
+ tools=[search_tool],
43
+ model=HfApiModel("deepseek-ai/DeepSeek-R1-0528"),
44
  max_steps=5,
45
  verbosity_level=2
46
  )