mgerlitz commited on
Commit
6bb2670
·
verified ·
1 Parent(s): ce67043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -58,20 +58,20 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
58
  prompt_templates = yaml.safe_load(stream)
59
 
60
  # We're creating our CodeAgent
61
- agent = CodeAgent(
62
- model=model,
63
- tools=[final_answer, DuckDuckGoSearchTool()], # add your tools here (don't remove final_answer)
64
- max_steps=6,
65
- verbosity_level=1,
66
- grammar=None,
67
- planning_interval=None,
68
- name=None,
69
- description=None,
70
- prompt_templates=prompt_templates
71
  )
72
 
73
 
74
- #agent = BasicAgent()
75
  except Exception as e:
76
  print(f"Error instantiating agent: {e}")
77
  return f"Error initializing agent: {e}", None
 
58
  prompt_templates = yaml.safe_load(stream)
59
 
60
  # We're creating our CodeAgent
61
+ #agent = CodeAgent(
62
+ # model=model,
63
+ # tools=[final_answer, DuckDuckGoSearchTool()], # add your tools here (don't remove final_answer)
64
+ # max_steps=6,
65
+ # verbosity_level=1,
66
+ # grammar=None,
67
+ # planning_interval=None,
68
+ # name=None,
69
+ # description=None,
70
+ # prompt_templates=prompt_templates
71
  )
72
 
73
 
74
+ agent = BasicAgent()
75
  except Exception as e:
76
  print(f"Error instantiating agent: {e}")
77
  return f"Error initializing agent: {e}", None