From f57b68121a526baea43b2e93f4540d8a2995f633 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 29 四月 2024 15:15:24 +0800
Subject: [PATCH] batch
---
funasr/bin/inference.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/funasr/bin/inference.py b/funasr/bin/inference.py
index d2f0c14..2a1b6aa 100644
--- a/funasr/bin/inference.py
+++ b/funasr/bin/inference.py
@@ -14,18 +14,20 @@
return {k: to_plain_list(v) for k, v in cfg_item.items()}
else:
return cfg_item
-
+
kwargs = to_plain_list(cfg)
log_level = getattr(logging, kwargs.get("log_level", "INFO").upper())
logging.basicConfig(level=log_level)
if kwargs.get("debug", False):
- import pdb; pdb.set_trace()
+ import pdb
+
+ pdb.set_trace()
model = AutoModel(**kwargs)
res = model.generate(input=kwargs["input"])
print(res)
-if __name__ == '__main__':
- main_hydra()
\ No newline at end of file
+if __name__ == "__main__":
+ main_hydra()
--
Gitblit v1.9.1