Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 14 |
def load_models_and_data():
|
| 15 |
model_name = "microsoft/speecht5_tts"
|
| 16 |
processor = SpeechT5Processor.from_pretrained(model_name)
|
| 17 |
-
model = SpeechT5ForTextToSpeech.from_pretrained("
|
| 18 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
| 19 |
|
| 20 |
spk_model_name = "speechbrain/spkrec-xvect-voxceleb"
|
|
@@ -138,8 +138,8 @@ iface = gr.Interface(
|
|
| 138 |
outputs=[
|
| 139 |
gr.Audio(label="Generated Speech", type="numpy")
|
| 140 |
],
|
| 141 |
-
title="Turkish SpeechT5 Text-to-Speech Demo",
|
| 142 |
-
description="Enter Turkish text, and listen to the generated speech."
|
| 143 |
)
|
| 144 |
|
| 145 |
iface.launch(share=True)
|
|
|
|
| 14 |
def load_models_and_data():
|
| 15 |
model_name = "microsoft/speecht5_tts"
|
| 16 |
processor = SpeechT5Processor.from_pretrained(model_name)
|
| 17 |
+
model = SpeechT5ForTextToSpeech.from_pretrained("Omarrran/turkish_finetuned_speecht5_tts").to(device)
|
| 18 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan").to(device)
|
| 19 |
|
| 20 |
spk_model_name = "speechbrain/spkrec-xvect-voxceleb"
|
|
|
|
| 138 |
outputs=[
|
| 139 |
gr.Audio(label="Generated Speech", type="numpy")
|
| 140 |
],
|
| 141 |
+
title=" fine-tuned Turkish SpeechT5 Text-to-Speech Demo",
|
| 142 |
+
description="Turkish_finetuned_speecht5_tts is a finetuned model based on is pre-trained base model of microsoft/speecht5_tts on text as well as speech inputs, Enter Turkish text, and listen to the generated speech."
|
| 143 |
)
|
| 144 |
|
| 145 |
iface.launch(share=True)
|