drAbreu commited on
Commit
0a04208
·
1 Parent(s): 8324a61

solving bug on agent calling in gradio app

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  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 base_agent.run(question)
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
-