From 60d28e59c3fda041f1ddccd842b2c9e94f2b9af1 Mon Sep 17 00:00:00 2001
From: hnluo <haoneng.lhn@alibaba-inc.com>
Date: 星期四, 01 六月 2023 19:56:15 +0800
Subject: [PATCH] Merge pull request #580 from alibaba-damo-academy/dev_lhn3

---
 funasr/samplers/build_batch_sampler.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/funasr/samplers/build_batch_sampler.py b/funasr/samplers/build_batch_sampler.py
index edda6ba..074b446 100644
--- a/funasr/samplers/build_batch_sampler.py
+++ b/funasr/samplers/build_batch_sampler.py
@@ -1,4 +1,5 @@
 from typing import List
+from typing import Dict
 from typing import Sequence
 from typing import Tuple
 from typing import Union
@@ -78,7 +79,7 @@
     type: str,
     batch_size: int,
     batch_bins: int,
-    shape_files: Union[Tuple[str, ...], List[str]],
+    shape_files: Union[Tuple[str, ...], List[str], Dict],
     sort_in_batch: str = "descending",
     sort_batch: str = "ascending",
     drop_last: bool = False,

--
Gitblit v1.9.1