Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ def translate_text(text):
|
|
26 |
return translated_text[0]['translation_text']
|
27 |
|
28 |
# load text-to-speech checkpoint
|
29 |
-
model = VitsModel.from_pretrained("
|
30 |
-
tokenizer = VitsTokenizer.from_pretrained("
|
31 |
|
32 |
def synthesise(text):
|
33 |
translated_text = translate_text(text)
|
|
|
26 |
return translated_text[0]['translation_text']
|
27 |
|
28 |
# load text-to-speech checkpoint
|
29 |
+
model = VitsModel.from_pretrained("facebook/mms-tts-rus")
|
30 |
+
tokenizer = VitsTokenizer.from_pretrained("facebook/mms-tts-rus")
|
31 |
|
32 |
def synthesise(text):
|
33 |
translated_text = translate_text(text)
|