Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def generate_speech(voice_choice, microphone, text):
|
|
44 |
|
45 |
|
46 |
###################################### main ######################################
|
47 |
-
def
|
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 |
-
|
|
|
|
|
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 |
|