Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,7 @@ def combine_audio_with_time(target_audio, mixed_audio):
|
|
40 |
return "final_output.wav", target_start_time
|
41 |
|
42 |
# 使用 pyannote/speaker-diarization 对拼接后的音频进行说话人分离
|
|
|
43 |
def diarize_audio(temp_file):
|
44 |
if pipeline is None:
|
45 |
return "错误: 模型未初始化"
|
|
|
40 |
return "final_output.wav", target_start_time
|
41 |
|
42 |
# 使用 pyannote/speaker-diarization 对拼接后的音频进行说话人分离
|
43 |
+
@spaces.GPU(duration=60 * 2)
|
44 |
def diarize_audio(temp_file):
|
45 |
if pipeline is None:
|
46 |
return "错误: 模型未初始化"
|