m-ric HF Staff commited on
Commit
ef3d985
·
verified ·
1 Parent(s): 609c341

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -233,8 +233,7 @@ def stream_to_gradio(
233
  ):
234
  yield message
235
 
236
- final_answer = step_log # Last log is the run's final_answer
237
- final_answer = handle_agent_output_types(final_answer)
238
 
239
  if isinstance(final_answer, AgentText):
240
  yield gr.ChatMessage(
 
233
  ):
234
  yield message
235
 
236
+ final_answer = handle_agent_output_types(step_log.content) # Last log is the run's final_answer
 
237
 
238
  if isinstance(final_answer, AgentText):
239
  yield gr.ChatMessage(