hash-map commited on
Commit
698c79c
·
verified ·
1 Parent(s): 44bcc2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ with gr.Blocks() as iface:
132
  post_ph_audio = ""
133
  mel_image_path = None
134
  text_result = text_to_phonemes(text_input) if text_input and text_input.strip() else {}
135
- text_phonemes = text_result.get("phonemes", "") if text_result else ""
136
  return audio_path, mel_image_path, raw_ph_audio, post_ph_audio, text_phonemes
137
 
138
  process_button.click(
 
132
  post_ph_audio = ""
133
  mel_image_path = None
134
  text_result = text_to_phonemes(text_input) if text_input and text_input.strip() else {}
135
+ text_phonemes = "".join(text_result)
136
  return audio_path, mel_image_path, raw_ph_audio, post_ph_audio, text_phonemes
137
 
138
  process_button.click(