mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 20:19:51 +01:00
fix audio out
This commit is contained in:
@@ -789,7 +789,7 @@ def pipeline_output_to_service_base64_output(task_name, pipeline_output):
|
||||
if key not in task_outputs:
|
||||
import torch
|
||||
if isinstance(value, torch.Tensor):
|
||||
v = np.array(value).tolist()
|
||||
v = np.array(value.cpu()).tolist()
|
||||
else:
|
||||
v = value
|
||||
json_serializable_output[key] = v
|
||||
|
||||
Reference in New Issue
Block a user