bstraehle commited on
Commit
09e6a76
1 Parent(s): 2106abd

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +2 -4
assistants.py CHANGED
@@ -160,10 +160,8 @@ def execute_tool_calls(run_steps):
160
 
161
  for step in run_steps.data:
162
  step_details = step.step_details
163
- str = get_json("step_details", step_details)
164
- print(str)
165
- gr.Info(get_json("usage", step.usage), duration=30)
166
- #gr.Info(str, duration=30)
167
 
168
  if hasattr(step_details, "tool_calls"):
169
  for tool_call in step_details.tool_calls:
 
160
 
161
  for step in run_steps.data:
162
  step_details = step.step_details
163
+ print(get_json("step_details", step_details))
164
+ gr.Info(f"{step_details.type} {get_json("usage", step.usage)}", duration=30)
 
 
165
 
166
  if hasattr(step_details, "tool_calls"):
167
  for tool_call in step_details.tool_calls: