Update app.py
Browse files
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):
|