QLWD commited on
Commit
9e4c424
1 Parent(s): 68f6bb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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 "错误: 模型未初始化"