Synnove commited on
Commit
0c0e98b
·
verified ·
1 Parent(s): 74bf47c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -36,12 +36,14 @@ class BasicAgent:
36
 
37
  class BasicCodeAgent:
38
  def __init__(self):
 
39
  print("BasicCodeAgent initialized.")
40
  def __call__(self, question: str) -> str:
41
  print(f"BasicCodeAgent received question (first 50 chars): {question[:50]}...")
42
  fixed_answer = "This is a default answer."
 
43
  print(f"BasicCodeAgent returning fixed answer: {fixed_answer}")
44
- return fixed_answer
45
 
46
  def run_and_submit_all( profile: gr.OAuthProfile | None):
47
  """
 
36
 
37
  class BasicCodeAgent:
38
  def __init__(self):
39
+ code_agent = CodeAgent(tools=[], model=model)
40
  print("BasicCodeAgent initialized.")
41
  def __call__(self, question: str) -> str:
42
  print(f"BasicCodeAgent received question (first 50 chars): {question[:50]}...")
43
  fixed_answer = "This is a default answer."
44
+ answer = agent.run(question)
45
  print(f"BasicCodeAgent returning fixed answer: {fixed_answer}")
46
+ return answer
47
 
48
  def run_and_submit_all( profile: gr.OAuthProfile | None):
49
  """