elizabetvaganova commited on
Commit
5a46f1e
·
1 Parent(s): e330520

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -3,7 +3,14 @@ import numpy as np
3
  import torch
4
  from datasets import load_dataset
5
 
6
- from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, SpeechT5Processor, pipeline
 
 
 
 
 
 
 
7
 
8
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
9
 
 
3
  import torch
4
  from datasets import load_dataset
5
 
6
+ from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, pipeline
7
+ from transformers import SpeechT5Processor
8
+
9
+ token = "<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>"
10
+ model_identifier = "tugstugi/mongolian-tts-ljspeech"
11
+
12
+ processor = SpeechT5Processor.from_pretrained(model_identifier, revision="main", token=token)
13
+
14
 
15
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
16