We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc73b5a commit c4e5972Copy full SHA for c4e5972
2 files changed
docker-compose.yml
@@ -4,7 +4,7 @@ services:
4
build:
5
context: .
6
dockerfile: Dockerfile
7
- image: paidax/funasr_python:0.2.3
+ image: paidax/funasr_python:0.3
8
runtime: nvidia
9
ports:
10
- 9527:9527
main.py
@@ -118,6 +118,10 @@ async def predict(items: Audio):
118
decoded_data = convert_audio_to_wav(decoded_data)
119
load_model(model_type=items.model_type, hotword=items.hotword)
120
rec_result = loaded_model["model"](audio_in=decoded_data)
121
+ if items.model_type=='normal' or items.model_type=='long':
122
+ rec_result = {
123
+ "text": rec_result["text"]
124
+ }
125
log.info(rec_result)
126
return rec_result
127
0 commit comments