Liphos commited on
Commit
ab33888
·
verified ·
1 Parent(s): 2e37121
Files changed (1) hide show
  1. Gradio_UI.py +1 -1
Gradio_UI.py CHANGED
@@ -50,7 +50,6 @@ def pull_messages_from_step(
50
  # For tool calls, create a parent message
51
  if hasattr(step_log, "tool_calls") and step_log.tool_calls is not None:
52
  first_tool_call = step_log.tool_calls[0]
53
- print(first_tool_call, first_tool_call.arguments)
54
  used_code = first_tool_call.name == "python_interpreter"
55
  parent_id = f"call_{len(step_log.tool_calls)}"
56
 
@@ -61,6 +60,7 @@ def pull_messages_from_step(
61
  content = str(args.get("answer", str(args)))
62
  else:
63
  content = str(args).strip()
 
64
 
65
  if used_code:
66
  # Clean up the content by removing any end code tags
 
50
  # For tool calls, create a parent message
51
  if hasattr(step_log, "tool_calls") and step_log.tool_calls is not None:
52
  first_tool_call = step_log.tool_calls[0]
 
53
  used_code = first_tool_call.name == "python_interpreter"
54
  parent_id = f"call_{len(step_log.tool_calls)}"
55
 
 
60
  content = str(args.get("answer", str(args)))
61
  else:
62
  content = str(args).strip()
63
+ print(parent_id, content)
64
 
65
  if used_code:
66
  # Clean up the content by removing any end code tags