update server_fastapi.py: 添加2.1模型推理支持。
This commit is contained in:
@@ -17,7 +17,7 @@ def get_emo(path):
|
||||
wav, sr = librosa.load(path, 16000)
|
||||
device = config.bert_gen_config.device
|
||||
return process_func(
|
||||
np.expand_dims(wav, 0).astype(np.float),
|
||||
np.expand_dims(wav, 0).astype(np.float64),
|
||||
sr,
|
||||
model,
|
||||
processor,
|
||||
|
||||
Reference in New Issue
Block a user