Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,9 @@ from huggingface_hub import InferenceClient
|
|
3 |
import torch
|
4 |
from TTS.api import TTS
|
5 |
import soundfile as sf
|
|
|
|
|
|
|
6 |
|
7 |
# Load TTS Model (supports multiple models)
|
8 |
tts_model = TTS("tts_models/en/ljspeech/tacotron2-DDC").to("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
3 |
import torch
|
4 |
from TTS.api import TTS
|
5 |
import soundfile as sf
|
6 |
+
import os
|
7 |
+
os.system("pip install fairseq==0.12.2")
|
8 |
+
|
9 |
|
10 |
# Load TTS Model (supports multiple models)
|
11 |
tts_model = TTS("tts_models/en/ljspeech/tacotron2-DDC").to("cuda" if torch.cuda.is_available() else "cpu")
|