Kevin676 commited on
Commit
8cd7a5e
1 Parent(s): c921881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=True)
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 = [