NTT123 commited on
Commit
1410af4
1 Parent(s): a28cfa9

only install espeak when needed.

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@
6
  # install espeak
7
  import os
8
 
9
- os.system("bash ./install_espeak_ng.sh")
 
10
 
11
  import gradio as gr
12
  from inference import load_tacotron_model, load_wavegru_net, mel_to_wav, text_to_mel
 
6
  # install espeak
7
  import os
8
 
9
+ if not os.path.isdir("./espeak"):
10
+ os.system("bash ./install_espeak_ng.sh")
11
 
12
  import gradio as gr
13
  from inference import load_tacotron_model, load_wavegru_net, mel_to_wav, text_to_mel