mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix the output of vad_results is null
This commit is contained in:
parent
2af58ee953
commit
c81e3096b2
@ -1,4 +1,4 @@
|
||||
import argparse
|
||||
mport argparse
|
||||
import logging
|
||||
import sys
|
||||
import json
|
||||
@ -236,6 +236,7 @@ def inference_modelscope(
|
||||
# param_dict['in_cache'] = batch['in_cache']
|
||||
if results:
|
||||
for i, _ in enumerate(keys):
|
||||
if results[i]:
|
||||
results[i] = json.dumps(results[i])
|
||||
item = {'key': keys[i], 'value': results[i]}
|
||||
vad_results.append(item)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user