Spaces:
Paused
Paused
Update app.py
Browse files
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(
|