broadfield commited on
Commit
7694bdc
·
verified ·
1 Parent(s): b6543ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def load_set(set_file):
37
  gr.update(value=set_json['pause']))
38
  def exp(exp_file):
39
  txt="""PiperTTS is a powerful text-to-speech TTS node designed to convert written text into high-quality spoken audio. This node leverages advanced voice synthesis models to generate natural-sounding speech, making it an invaluable tool for AI developers looking to add a vocal element to their projects."""
40
- exp_file=f"./example/en_US-ljspeech-high__1_2__1__1_3__2.json"
41
  return(gr.update(value=txt),gr.update(value=exp_file))
42
 
43
  with gr.Blocks() as b:
@@ -59,8 +59,8 @@ with gr.Blocks() as b:
59
  width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=0.3)
60
  sen_pause=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=2)
61
  with gr.Tab("Save Settings"):
62
- save_file=gr.File()
63
  save_btn=gr.Button("Save")
 
64
  save_btn.click(save_set,[names,length,noise,width,sen_pause],save_file)
65
  with gr.Tab("Load Settings"):
66
  load_file=gr.File()
 
37
  gr.update(value=set_json['pause']))
38
  def exp(exp_file):
39
  txt="""PiperTTS is a powerful text-to-speech TTS node designed to convert written text into high-quality spoken audio. This node leverages advanced voice synthesis models to generate natural-sounding speech, making it an invaluable tool for AI developers looking to add a vocal element to their projects."""
40
+ exp_file=f"./example/en_US-ljspeech-high__1__1__0_5__1.json"
41
  return(gr.update(value=txt),gr.update(value=exp_file))
42
 
43
  with gr.Blocks() as b:
 
59
  width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=0.3)
60
  sen_pause=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=2)
61
  with gr.Tab("Save Settings"):
 
62
  save_btn=gr.Button("Save")
63
+ save_file=gr.File()
64
  save_btn.click(save_set,[names,length,noise,width,sen_pause],save_file)
65
  with gr.Tab("Load Settings"):
66
  load_file=gr.File()