Stevenfunau commited on
Commit
7901405
·
verified ·
1 Parent(s): 1713c3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -39,15 +39,15 @@ class BasicAgent:
39
  ],
40
  name="agent",
41
  description="agent desc",
42
- planning_interval=5,
43
  verbosity_level=2,
44
- max_steps=15,
45
  )
46
  print("BasicAgent initialized.")
47
 
48
  def __call__(self, question: str) -> str:
49
  print(f"Agent received question (first 50 chars): {question[:50]}...")
50
- fixed_answer = "This is a default answer."
51
  print(f"Agent returning fixed answer: {fixed_answer}")
52
  return fixed_answer
53
 
@@ -74,6 +74,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
74
  try:
75
  agent = BasicAgent()
76
  #--SM
 
77
 
78
  except Exception as e:
79
  print(f"Error instantiating agent: {e}")
 
39
  ],
40
  name="agent",
41
  description="agent desc",
42
+ #planning_interval=5,
43
  verbosity_level=2,
44
+ #max_steps=15,
45
  )
46
  print("BasicAgent initialized.")
47
 
48
  def __call__(self, question: str) -> str:
49
  print(f"Agent received question (first 50 chars): {question[:50]}...")
50
+ fixed_answer = self.agent.run(question)
51
  print(f"Agent returning fixed answer: {fixed_answer}")
52
  return fixed_answer
53
 
 
74
  try:
75
  agent = BasicAgent()
76
  #--SM
77
+ agent.visualize()
78
 
79
  except Exception as e:
80
  print(f"Error instantiating agent: {e}")