游雁 2 лет назад
Родитель
Сommit
3526eaa8d2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      funasr/runtime/python/grpc/grpc_server.py

+ 1 - 1
funasr/runtime/python/grpc/grpc_server.py

@@ -109,7 +109,7 @@ class ASRServicer(paraformer_pb2_grpc.ASRServicer):
                             else:
                             else:
                                 asr_result = ""
                                 asr_result = ""
                         elif self.backend == "onnxruntime":
                         elif self.backend == "onnxruntime":
-                            from rapid_paraformer.utils.frontend import load_bytes
+                            from funasr_onnx.utils.frontend import load_bytes
                             array = load_bytes(tmp_data)
                             array = load_bytes(tmp_data)
                             asr_result = self.inference_16k_pipeline(array)[0]
                             asr_result = self.inference_16k_pipeline(array)[0]
                         end_time = int(round(time.time() * 1000))
                         end_time = int(round(time.time() * 1000))