mbarnig commited on
Commit
0add6a8
·
verified ·
1 Parent(s): cce2062

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -30,13 +30,13 @@ def load_mod(instr="en_US-joe-medium"):
30
  # file.write(json.dumps(set_json,indent=4))
31
  # file.close()
32
  # return(f'{os.getcwd()}/saved/{file_name}.json')
33
- def load_set(set_file):
34
- with open(set_file,'r') as file:
35
- set_json=json.loads(file.read())
36
- file.close()
37
- return(gr.update(value=set_json['model']),gr.update(value=set_json['length']),
38
- gr.update(value=set_json['noise']),gr.update(value=set_json['width']),
39
- gr.update(value=set_json['pause']))
40
  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."""
41
  # def exp1():
42
  # exp_file=f"./example/en_US-libritts-high__1_4__0_3__0_2__1.json"
 
30
  # file.write(json.dumps(set_json,indent=4))
31
  # file.close()
32
  # return(f'{os.getcwd()}/saved/{file_name}.json')
33
+ # def load_set(set_file):
34
+ # with open(set_file,'r') as file:
35
+ # set_json=json.loads(file.read())
36
+ # file.close()
37
+ # return(gr.update(value=set_json['model']),gr.update(value=set_json['length']),
38
+ # gr.update(value=set_json['noise']),gr.update(value=set_json['width']),
39
+ # gr.update(value=set_json['pause']))
40
  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."""
41
  # def exp1():
42
  # exp_file=f"./example/en_US-libritts-high__1_4__0_3__0_2__1.json"