Sandiago21 commited on
Commit
e9a7ca3
1 Parent(s): 6315bf2

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline, SpeechT5HifiGan, SpeechT5ForTextToSpeech
6
  model_id = "Sandiago21/speecht5_finetuned_voxpopuli_it" # update with your model id
7
  # pipe = pipeline("automatic-speech-recognition", model=model_id)
8
  model = SpeechT5ForTextToSpeech.from_pretrained(model_id)
9
- vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").cuda()
10
  embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
11
  speaker_embeddings = torch.tensor(embeddings_dataset[7440]["xvector"]).unsqueeze(0)
12
 
 
6
  model_id = "Sandiago21/speecht5_finetuned_voxpopuli_it" # update with your model id
7
  # pipe = pipeline("automatic-speech-recognition", model=model_id)
8
  model = SpeechT5ForTextToSpeech.from_pretrained(model_id)
9
+ vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
10
  embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
11
  speaker_embeddings = torch.tensor(embeddings_dataset[7440]["xvector"]).unsqueeze(0)
12