Spaces:
Running
Running
next-playground
commited on
Commit
•
e6aa5d1
1
Parent(s):
60cb5bc
Update flask_api_full_song.py
Browse files- flask_api_full_song.py +0 -1
flask_api_full_song.py
CHANGED
@@ -88,7 +88,6 @@ def infer(audio_path, tran, spk, wav_format, task_id):
|
|
88 |
audio.extend(list(infer_tool.pad_array(_audio, length)))
|
89 |
out_wav_path = "/tmp/" + audio_name
|
90 |
soundfile.write(out_wav_path, audio, svc_model.target_sample, format=wav_format)
|
91 |
-
out_wav_path.seek(0)
|
92 |
|
93 |
# 提供文件的永久直链
|
94 |
result_audio_url = f"/download/{os.path.basename(out_wav_path)}"
|
|
|
88 |
audio.extend(list(infer_tool.pad_array(_audio, length)))
|
89 |
out_wav_path = "/tmp/" + audio_name
|
90 |
soundfile.write(out_wav_path, audio, svc_model.target_sample, format=wav_format)
|
|
|
91 |
|
92 |
# 提供文件的永久直链
|
93 |
result_audio_url = f"/download/{os.path.basename(out_wav_path)}"
|