Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,11 +115,11 @@ def submit_input(input_, speaker_id):
|
|
115 |
output_audio = None
|
116 |
output_phonetic = None
|
117 |
if input_ is not None and len(input_) < MAX_INPUT_TEXT_LEN:
|
118 |
-
output_audio
|
119 |
output_phonetic = get_phonetic_transcription(input_)
|
120 |
else:
|
121 |
gr.Warning(f"Your text exceeds the {MAX_INPUT_TEXT_LEN}-character limit.")
|
122 |
-
return output_audio,
|
123 |
|
124 |
|
125 |
def change_interactive(text):
|
|
|
115 |
output_audio = None
|
116 |
output_phonetic = None
|
117 |
if input_ is not None and len(input_) < MAX_INPUT_TEXT_LEN:
|
118 |
+
output_audio = tts_inference(input_, speaker_id)
|
119 |
output_phonetic = get_phonetic_transcription(input_)
|
120 |
else:
|
121 |
gr.Warning(f"Your text exceeds the {MAX_INPUT_TEXT_LEN}-character limit.")
|
122 |
+
return output_audio, output_phonetic
|
123 |
|
124 |
|
125 |
def change_interactive(text):
|