From 28ccfbfc51068a663a80764e14074df5edf2b5ba Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期五, 13 三月 2026 17:41:41 +0800
Subject: [PATCH] 提交

---
 tests/test_punctuation_pipeline.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/test_punctuation_pipeline.py b/tests/test_punctuation_pipeline.py
index e582042..8ae87d1 100644
--- a/tests/test_punctuation_pipeline.py
+++ b/tests/test_punctuation_pipeline.py
@@ -6,16 +6,18 @@
 
 logger = get_logger()
 
+
 class TestTransformerInferencePipelines(unittest.TestCase):
     def test_funasr_path(self):
         import funasr
         import os
+
         logger.info("run_dir:{0} ; funasr_path: {1}".format(os.getcwd(), funasr.__file__))
 
     def test_inference_pipeline(self):
         inference_pipeline = pipeline(
             task=Tasks.punctuation,
-            model='damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch',
+            model="damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch",
             model_revision="v1.1.7",
         )
         inputs = "./egs_modelscope/punctuation/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/data/punc_example.txt"
@@ -25,7 +27,7 @@
     def test_vadrealtime_inference_pipeline(self):
         inference_pipeline = pipeline(
             task=Tasks.punctuation,
-            model='damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727',
+            model="damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727",
         )
         inputs = "璺ㄥ娌虫祦鏄吇鑲叉部宀竱浜烘皯鐨勭敓鍛戒箣婧愰暱鏈熶互鏉ヤ负甯姪涓嬫父鍦板尯闃茬伨鍑忕伨涓柟鎶�鏈汉鍛榺鍦ㄤ笂娓稿湴鍖烘瀬涓烘伓鍔g殑鑷劧鏉′欢涓嬪厠鏈嶅法澶у洶闅剧敋鑷冲啋鐫�鐢熷懡鍗遍櫓|鍚戝嵃鏂规彁渚涙睕鏈熸按鏂囪祫鏂欏鐞嗙揣鎬ヤ簨浠朵腑鏂归噸瑙嗗嵃鏂瑰湪璺ㄥ娌虫祦闂涓婄殑鍏冲垏|鎰挎剰杩涗竴姝ュ畬鍠勫弻鏂硅仈鍚堝伐浣滄満鍒秥鍑℃槸|涓柟鑳藉仛鐨勬垜浠瑋閮戒細鍘诲仛鑰屼笖浼氬仛寰楁洿濂芥垜璇峰嵃搴︽湅鍙嬩滑鏀惧績涓浗鍦ㄤ笂娓哥殑|浠讳綍寮�鍙戝埄鐢ㄩ兘浼氱粡杩囩瀛瑙勫垝鍜岃璇佸吋椤句笂涓嬫父鐨勫埄鐩�"
         vads = inputs.split("|")
@@ -37,5 +39,5 @@
         logger.info("punctuation inference result: {0}".format(rec_result_all))
 
 
-if __name__ == '__main__':
+if __name__ == "__main__":
     unittest.main()

--
Gitblit v1.9.1