update the punc text model, text=doc

pull/1772/head
xiongxinlei 3 years ago
parent 2fa1522bdd
commit 9e50448039

@ -160,7 +160,7 @@ cls_inference:
################### text task: punc; engine_type: python ####################### ################### text task: punc; engine_type: python #######################
text_python: text_python:
task: punc task: punc
model_type: 'ernie_linear_p7_wudao' model_type: 'ernie_linear_p3_wudao'
lang: 'zh' lang: 'zh'
sample_rate: 16000 sample_rate: 16000
cfg_path: # [optional] cfg_path: # [optional]

@ -33,7 +33,7 @@ def help():
"""help """help
Returns: Returns:
json: [description] json: The /paddlespeech/text api response content
""" """
response = { response = {
"success": "True", "success": "True",
@ -42,9 +42,7 @@ def help():
"global": "success" "global": "success"
}, },
"result": { "result": {
"description": "text server", "punc_text": "The punctuation text content"
"input": "text string",
"output": "punctuation text"
} }
} }
return response return response

Loading…
Cancel
Save