Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- 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
|
| 134 |
-
step_log.output_token_count = agent.model.last_output_token_count
|
| 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,
|