zhifu gao
2023-03-17 03d4ce829814b4a7f57235fda049351c524ba32b
funasr/runtime/triton_gpu/model_repo_paraformer_large_offline/scoring/1/model.py
@@ -21,8 +21,7 @@
import json
import os
import pickle
import yaml
class TritonPythonModel:
    """Your Python model must use the same class name. Every Python model
@@ -76,8 +75,8 @@
        load lang_char.txt
        """
        with open(str(vocab_file), 'rb') as f:
            token_list = pickle.load(f)
        return token_list
            config = yaml.load(f, Loader=yaml.Loader)
        return config['token_list']
    def execute(self, requests):
        """`execute` must be implemented in every Python model. `execute`