From 42f90b4ca1fccc2e1b7bc6d50639ccbb19b87863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E5=BF=B5?= Date: Thu, 2 Mar 2023 10:17:11 +0800 Subject: [PATCH] modify grpc environment dependencies --- funasr/runtime/python/grpc/grpc_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funasr/runtime/python/grpc/grpc_server.py b/funasr/runtime/python/grpc/grpc_server.py index baa7ed59a..95fe96cdb 100644 --- a/funasr/runtime/python/grpc/grpc_server.py +++ b/funasr/runtime/python/grpc/grpc_server.py @@ -5,7 +5,6 @@ import time import paraformer_pb2_grpc from paraformer_pb2 import Response -from rapid_paraformer.utils.frontend import load_bytes class ASRServicer(paraformer_pb2_grpc.ASRServicer): @@ -110,6 +109,7 @@ class ASRServicer(paraformer_pb2_grpc.ASRServicer): else: asr_result = "" elif self.backend == "onnxruntime": + from rapid_paraformer.utils.frontend import load_bytes array = load_bytes(tmp_data) asr_result = self.inference_16k_pipeline(array)[0] end_time = int(round(time.time() * 1000))