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

added response to agent

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -19,10 +19,8 @@ class BasicAgent:
19
  async def agentic_main():
20
  response = await main_agent.run(question)
21
  response = asyncio.run(agentic_main())
22
- print(response)
23
- exit()
24
- print(f"Agent returning fixed answer: {fixed_answer}")
25
- return fixed_answer
26
 
27
  def run_and_submit_all( profile: gr.OAuthProfile | None):
28
  """
 
19
  async def agentic_main():
20
  response = await main_agent.run(question)
21
  response = asyncio.run(agentic_main())
22
+ print(f"Agent returning answer: {response.response.blocks[-1].text}")
23
+ return response.response.blocks[-1].text
 
 
24
 
25
  def run_and_submit_all( profile: gr.OAuthProfile | None):
26
  """