jcleee commited on
Commit
dc1b9fa
·
verified ·
1 Parent(s): 9a2c5c8

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +2 -2
Gradio_UI.py CHANGED
@@ -130,8 +130,8 @@ def stream_to_gradio(
130
  total_input_tokens += agent.model.last_input_token_count
131
  total_output_tokens += agent.model.last_output_token_count
132
  if isinstance(step_log, ActionStep):
133
- step_log.input_token_count = agent.model.last_input_token_count# or 0 # or 0 added for non-Gemini models
134
- step_log.output_token_count = agent.model.last_output_token_count# or 0 # or 0 added for non-Gemini models
135
 
136
  for message in pull_messages_from_step(
137
  step_log,
 
130
  total_input_tokens += agent.model.last_input_token_count
131
  total_output_tokens += agent.model.last_output_token_count
132
  if isinstance(step_log, ActionStep):
133
+ step_log.input_token_count = agent.model.last_input_token_count
134
+ step_log.output_token_count = agent.model.last_output_token_count
135
 
136
  for message in pull_messages_from_step(
137
  step_log,