dygoo commited on
Commit
a645b49
·
verified ·
1 Parent(s): ebfd0a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -19,14 +19,15 @@ class BasicAgent:
19
  def __init__(self, model=None, tools=None):
20
  self.model = model
21
  self.tools = tools if tools is not None else []
 
22
  print("BasicAgent initialized.")
23
 
24
  def __call__(self, question: str) -> str:
25
  print(f"Agent received question (first 50 chars): {question[:50]}...")
26
  # Implement your agent logic here using self.model and self.tools
27
- fixed_answer = "This is a default answer."
28
  print(f"Agent returning fixed answer: {fixed_answer}")
29
- return fixed_answer
30
 
31
  def run_and_submit_all( profile: gr.OAuthProfile | None):
32
  """
 
19
  def __init__(self, model=None, tools=None):
20
  self.model = model
21
  self.tools = tools if tools is not None else []
22
+ self.agent = BasicAgent
23
  print("BasicAgent initialized.")
24
 
25
  def __call__(self, question: str) -> str:
26
  print(f"Agent received question (first 50 chars): {question[:50]}...")
27
  # Implement your agent logic here using self.model and self.tools
28
+ final_answer = self.agent.run
29
  print(f"Agent returning fixed answer: {fixed_answer}")
30
+ return final_answer
31
 
32
  def run_and_submit_all( profile: gr.OAuthProfile | None):
33
  """