From 895d84f24d8fc72298cbe846329b3f992d7ec23a Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 18 九月 2023 10:49:27 +0800
Subject: [PATCH] v0.7.8

---
 funasr/bin/asr_inference_launch.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/funasr/bin/asr_inference_launch.py b/funasr/bin/asr_inference_launch.py
index 608dad0..ad657eb 100644
--- a/funasr/bin/asr_inference_launch.py
+++ b/funasr/bin/asr_inference_launch.py
@@ -652,7 +652,7 @@
             batch_size_token_ms_cum = 0
             beg_idx = 0
             beg_asr_total = time.time()
-            for j, _ in tqdm(enumerate(range(0, n))):
+            for j, _ in enumerate(tqdm(range(0, n))):
                 batch_size_token_ms_cum += (sorted_data[j][0][1] - sorted_data[j][0][0])
                 if j < n - 1 and (batch_size_token_ms_cum + sorted_data[j + 1][0][1] - sorted_data[j + 1][0][0]) < batch_size_token_ms and (sorted_data[j + 1][0][1] - sorted_data[j + 1][0][0]) < batch_size_token_threshold_s:
                     continue

--
Gitblit v1.9.1