update the punc text model, text=doc

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

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

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

Loading…
Cancel
Save