AntonVoronko commited on
Commit
fc868bc
·
verified ·
1 Parent(s): 22ed299

structured output

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,11 +30,11 @@ class BasicAgent:
30
  print(f"Agent received question (first 50 chars): {question[:50]}...")
31
  # fixed_answer = await self.agent.run(question)
32
  fixed_answer = await self.agent.run(question)
33
- print(fixed_answer.response.content)
34
  # print(f"Agent returning fixed answer: {fixed_answer}")
35
  # for i in fixed_answer:
36
  # print(i, "///")
37
- return fixed_answer
38
 
39
  def run_and_submit_all( profile: gr.OAuthProfile | None):
40
  """
 
30
  print(f"Agent received question (first 50 chars): {question[:50]}...")
31
  # fixed_answer = await self.agent.run(question)
32
  fixed_answer = await self.agent.run(question)
33
+ # print(fixed_answer.response.content)
34
  # print(f"Agent returning fixed answer: {fixed_answer}")
35
  # for i in fixed_answer:
36
  # print(i, "///")
37
+ return fixed_answer.response.content
38
 
39
  def run_and_submit_all( profile: gr.OAuthProfile | None):
40
  """