Spaces:
Sleeping
Sleeping
even more async
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ class BasicAgent:
|
|
| 26 |
llm = Groq(model="qwen-qwq-32b", api_key=api_key)
|
| 27 |
self.agent = ReActAgent(tools=[search_tool], llm=llm)
|
| 28 |
print("BasicAgent initialized.")
|
| 29 |
-
def __call__(self, question: str) -> str:
|
| 30 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 31 |
fixed_answer = await self.agent.run(question)
|
| 32 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
|
|
|
| 26 |
llm = Groq(model="qwen-qwq-32b", api_key=api_key)
|
| 27 |
self.agent = ReActAgent(tools=[search_tool], llm=llm)
|
| 28 |
print("BasicAgent initialized.")
|
| 29 |
+
async def __call__(self, question: str) -> str:
|
| 30 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 31 |
fixed_answer = await self.agent.run(question)
|
| 32 |
print(f"Agent returning fixed answer: {fixed_answer}")
|