Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
|
3 |
from TTS.api import TTS
|
4 |
|
5 |
-
tts1 = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar=False, gpu=
|
6 |
|
7 |
tts2 = TTS("tts_models/zh-CN/baker/tacotron2-DDC-GST")
|
8 |
|
@@ -17,7 +17,7 @@ from speechbrain.pretrained import SpectralMaskEnhancement
|
|
17 |
enhance_model = SpectralMaskEnhancement.from_hparams(
|
18 |
source="speechbrain/metricgan-plus-voicebank",
|
19 |
savedir="pretrained_models/metricgan-plus-voicebank",
|
20 |
-
run_opts={"device":"cuda"},
|
21 |
)
|
22 |
|
23 |
mes = [
|
|
|
2 |
|
3 |
from TTS.api import TTS
|
4 |
|
5 |
+
tts1 = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar=False, gpu=False)
|
6 |
|
7 |
tts2 = TTS("tts_models/zh-CN/baker/tacotron2-DDC-GST")
|
8 |
|
|
|
17 |
enhance_model = SpectralMaskEnhancement.from_hparams(
|
18 |
source="speechbrain/metricgan-plus-voicebank",
|
19 |
savedir="pretrained_models/metricgan-plus-voicebank",
|
20 |
+
#run_opts={"device":"cuda"},
|
21 |
)
|
22 |
|
23 |
mes = [
|