SimpleSam commited on
Commit
82fb817
·
verified ·
1 Parent(s): 38b8c01

Update Manyata_UI.py

Browse files
Files changed (1) hide show
  1. Manyata_UI.py +2 -2
Manyata_UI.py CHANGED
@@ -34,7 +34,7 @@ def pull_messages_from_step(
34
  if isinstance(step_log, ActionStep):
35
  # Output the step number
36
  step_number = f"Step {step_log.step_number}" if step_log.step_number is not None else ""
37
- yield gr.ChatMessage(role="assistant", content=f"**{step_number}**")
38
 
39
  # First yield the thought/reasoning from the LLM
40
  # if hasattr(step_log, "model_output") and step_log.model_output is not None:
@@ -153,7 +153,7 @@ def stream_to_gradio(
153
  # ):
154
  # yield message
155
 
156
- # final_answer = step_log # Last log is the run's final_answer
157
  final_answer = handle_agent_output_types(final_answer)
158
 
159
  if isinstance(final_answer, AgentText):
 
34
  if isinstance(step_log, ActionStep):
35
  # Output the step number
36
  step_number = f"Step {step_log.step_number}" if step_log.step_number is not None else ""
37
+ # yield gr.ChatMessage(role="assistant", content=f"**{step_number}**")
38
 
39
  # First yield the thought/reasoning from the LLM
40
  # if hasattr(step_log, "model_output") and step_log.model_output is not None:
 
153
  # ):
154
  # yield message
155
 
156
+ final_answer = step_log # Last log is the run's final_answer
157
  final_answer = handle_agent_output_types(final_answer)
158
 
159
  if isinstance(final_answer, AgentText):