quentinbch commited on
Commit
8f1fe8d
·
verified ·
1 Parent(s): 430f2e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts").to(dev
33
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
34
 
35
  # Chargement du speaker embedding (voix)
36
- embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
37
  speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0).to(device)
38
 
39
  def transcribe(audio_path):
 
33
  vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
34
 
35
  # Chargement du speaker embedding (voix)
36
+ embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation", trust_remote_code=True)
37
  speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0).to(device)
38
 
39
  def transcribe(audio_path):