语帆 2 سال پیش
والد
کامیت
9876729a25
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      examples/industrial_data_pretraining/lcbnet/demo.py

+ 2 - 3
examples/industrial_data_pretraining/lcbnet/demo.py

@@ -10,9 +10,8 @@ model = AutoModel(model="iic/LCB-NET",
 
 
 # example1
-#res = model.generate(input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav",
-#                    )
-#print(res)
+res = model.generate(input='["~/.cache/modelscope/hub/iic/LCB-NET/example/asr_example.wav","~/.cache/modelscope/hub/iic/LCB-NET/example/ocr.txt"]',data_type='["sound", "text"]')
+print(res)
 
 
 '''