vinhvo1988 commited on
Commit
ca34af8
·
verified ·
1 Parent(s): 5989699

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,8 +18,9 @@ class BasicAgent:
18
  self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())
19
 
20
  def __call__(self, question: str) -> str:
21
- print(f"Agent received question: {question}...")
22
- result = agent.run(question)
 
23
  return result
24
 
25
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
18
  self.agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())
19
 
20
  def __call__(self, question: str) -> str:
21
+ print(f"Agent received question: {question}")
22
+ result = self.agent.run(question)
23
+ print(f"Agent responded with: {result}")
24
  return result
25
 
26
  def run_and_submit_all( profile: gr.OAuthProfile | None):