NTT123 commited on
Commit
92e68f4
1 Parent(s): 4462e93

try to use wavegru_mod binary instead of compiling

Browse files
Files changed (2) hide show
  1. .gitattributes +1 -0
  2. app.py +7 -2
.gitattributes CHANGED
@@ -29,3 +29,4 @@ pretrained_model_ljs_500k.ckpt filter=lfs diff=lfs merge=lfs -text
29
  wavegru_vocoder_tpu_gta_preemphasis_pruning_v7_0040000.ckpt filter=lfs diff=lfs merge=lfs -text
30
  bazelisk-linux-amd64 filter=lfs diff=lfs merge=lfs -text
31
  wavegru.ckpt filter=lfs diff=lfs merge=lfs -text
 
 
29
  wavegru_vocoder_tpu_gta_preemphasis_pruning_v7_0040000.ckpt filter=lfs diff=lfs merge=lfs -text
30
  bazelisk-linux-amd64 filter=lfs diff=lfs merge=lfs -text
31
  wavegru.ckpt filter=lfs diff=lfs merge=lfs -text
32
+ bazel-bin/wavegru_mod.so filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import os
2
 
3
  ## build wavegru-cpp
4
- os.system("./bazelisk-linux-amd64 clean --expunge")
5
- os.system("./bazelisk-linux-amd64 build wavegru_mod -c opt --copt=-march=native")
6
 
7
 
8
  import gradio as gr
@@ -35,6 +35,11 @@ description = "WaveGRU text-to-speech demo."
35
  gr.Interface(
36
  fn=speak,
37
  inputs="text",
 
 
 
 
 
38
  outputs="audio",
39
  title=title,
40
  description=description,
 
1
  import os
2
 
3
  ## build wavegru-cpp
4
+ # os.system("./bazelisk-linux-amd64 clean --expunge")
5
+ # os.system("./bazelisk-linux-amd64 build wavegru_mod -c opt --copt=-march=native")
6
 
7
 
8
  import gradio as gr
 
35
  gr.Interface(
36
  fn=speak,
37
  inputs="text",
38
+ examples=[
39
+ "this is a test!",
40
+ "October arrived, spreading a damp chill over the grounds and into the castle. Madam Pomfrey, the nurse, was kept busy by a sudden spate of colds among the staff and students.",
41
+ "Artificial intelligence is intelligence demonstrated by machines, as opposed to natural intelligence displayed by animals including humans",
42
+ ],
43
  outputs="audio",
44
  title=title,
45
  description=description,