ameglei-external commited on
Commit
a0ad7df
·
verified ·
1 Parent(s): 09a3f13

map to string messages in the list

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -232,8 +232,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
232
 
233
  def check_agent(question: str):
234
  agent = BasicAgent()
235
- final_answer, logs = agent(question)
236
- return final_answer, "\n".join(logs)
237
 
238
 
239
  # --- Build Gradio Interface using Blocks ---
 
232
 
233
  def check_agent(question: str):
234
  agent = BasicAgent()
235
+ final_answer, msgs = agent(question)
236
+ return final_answer, "\n".join([str(msg) for msg in msgs])
237
 
238
 
239
  # --- Build Gradio Interface using Blocks ---