Kevin676 commited on
Commit
b3ead13
1 Parent(s): 20c9cd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -9,7 +9,9 @@ from voicefixer import VoiceFixer
9
  voicefixer = VoiceFixer()
10
 
11
  from TTS.api import TTS
12
- tts = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar=False, gpu=True)
 
 
13
 
14
  import whisper
15
  model1 = whisper.load_model("small")
@@ -239,7 +241,7 @@ c2 = gr.Interface(
239
 
240
  demo = gr.TabbedInterface([c1, c2], ["wav/mp3上传", "麦克风上传"], title = '🥳💬💕 - TalktoAI,随时随地,谈天说地!')
241
  demo.queue(concurrency_count=1)
242
- demo.launch(show_error = True)
243
 
244
 
245
  # Old testing code follows.
 
9
  voicefixer = VoiceFixer()
10
 
11
  from TTS.api import TTS
12
+ #tts = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar=False, gpu=True)
13
+
14
+ tts = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar=False, gpu=False)
15
 
16
  import whisper
17
  model1 = whisper.load_model("small")
 
241
 
242
  demo = gr.TabbedInterface([c1, c2], ["wav/mp3上传", "麦克风上传"], title = '🥳💬💕 - TalktoAI,随时随地,谈天说地!')
243
  demo.queue(concurrency_count=1)
244
+ demo.launch()
245
 
246
 
247
  # Old testing code follows.