tykiww commited on
Commit
1b3c5cb
·
verified ·
1 Parent(s): dd46461

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def generate_speech(voice_choice, microphone, text):
44
 
45
 
46
  ###################################### main ######################################
47
- def main(config):
48
 
49
  # gradio elements
50
  voice_choice = gr.Radio(label="Record or skip to use predefined voice.",
@@ -75,9 +75,12 @@ def main(config):
75
  if __name__ == "__main__":
76
  # Get config
77
  config = get_config()
 
78
  # initialize TTS
79
  tts = init_TTS(config)
80
- main(config)
 
 
81
 
82
 
83
 
 
44
 
45
 
46
  ###################################### main ######################################
47
+ def UI(config):
48
 
49
  # gradio elements
50
  voice_choice = gr.Radio(label="Record or skip to use predefined voice.",
 
75
  if __name__ == "__main__":
76
  # Get config
77
  config = get_config()
78
+
79
  # initialize TTS
80
  tts = init_TTS(config)
81
+
82
+ # run program
83
+ UI(config)
84
 
85
 
86