prasoonmhwr commited on
Commit
c134e24
·
1 Parent(s): 25ae4fb

updated agent again

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,9 +32,9 @@ class BasicAgent:
32
  if not messages or "messages" not in messages or not messages["messages"]:
33
  print("⚠️ No messages returned by the graph.")
34
  return "ERROR: Agent did not return a response."
35
- answer = messages['messages'] #[-1].content
36
  print(answer)
37
- return answer
38
 
39
 
40
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
32
  if not messages or "messages" not in messages or not messages["messages"]:
33
  print("⚠️ No messages returned by the graph.")
34
  return "ERROR: Agent did not return a response."
35
+ answer = messages['messages'][-1].content
36
  print(answer)
37
+ return answer[14:]
38
 
39
 
40
  def run_and_submit_all( profile: gr.OAuthProfile | None):