solving bug on agent calling in gradio app
Browse files- app.py +1 -2
- youtube_analysis.py +0 -1
app.py
CHANGED
@@ -16,9 +16,8 @@ class BasicAgent:
|
|
16 |
print("BasicAgent initialized.")
|
17 |
def __call__(self, question: str) -> str:
|
18 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
19 |
-
base_agent = main_agent()
|
20 |
async def agentic_main():
|
21 |
-
response = await
|
22 |
response = asyncio.run(agentic_main())
|
23 |
print(response)
|
24 |
exit()
|
|
|
16 |
print("BasicAgent initialized.")
|
17 |
def __call__(self, question: str) -> str:
|
18 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
19 |
async def agentic_main():
|
20 |
+
response = await main_agent.run(question)
|
21 |
response = asyncio.run(agentic_main())
|
22 |
print(response)
|
23 |
exit()
|
youtube_analysis.py
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
|
|
|
|