Hilley commited on
Commit
4511161
1 Parent(s): 779412e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -147,7 +147,7 @@ def vc_en(text, audio_ref, style_mode):
147
  output_path=save_path,
148
  message=encode_message)
149
 
150
- else:
151
  source_se = torch.load(f'{ckpt_base_en}/en_style_se.pth').to(device)
152
  reference_speaker = audio_ref
153
  target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, target_dir='processed', vad=True)
 
147
  output_path=save_path,
148
  message=encode_message)
149
 
150
+ else:
151
  source_se = torch.load(f'{ckpt_base_en}/en_style_se.pth').to(device)
152
  reference_speaker = audio_ref
153
  target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, target_dir='processed', vad=True)