Tonic commited on
Commit
e7e8d00
1 Parent(s): dfeae90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def generate_segment_audio(text, lang, speaker_url, pipe):
50
  return audio_np
51
 
52
  def concatenate_audio_segments(segments):
53
- concatenated_audio = np.concatenate(segments , axis=1)
54
  return concatenated_audio
55
 
56
 
@@ -87,7 +87,7 @@ with gr.Blocks() as demo:
87
  speaker_input = gr.Audio(label="Upload or Record Speaker Audio (optional)🌬️💬", sources=["upload", "microphone"])
88
  with gr.Row():
89
  with gr.Accordion("Available Languages and Their Tags", open=False):
90
- formatted_language_list = "\n".join([f"<{lang}> {LANGUAGES[lang]}" for lang in LANGUAGES])
91
  gr.Markdown(formatted_language_list)
92
  with gr.Row():
93
  with gr.Accordion("Try Multilingual Text Examples", open=False):
 
50
  return audio_np
51
 
52
  def concatenate_audio_segments(segments):
53
+ concatenated_audio = np.concatenate(segments , axis=0) #axis experimentation
54
  return concatenated_audio
55
 
56
 
 
87
  speaker_input = gr.Audio(label="Upload or Record Speaker Audio (optional)🌬️💬", sources=["upload", "microphone"])
88
  with gr.Row():
89
  with gr.Accordion("Available Languages and Their Tags", open=False):
90
+ formatted_language_list = "\n".join([f"`<{lang}>` {LANGUAGES[lang]}" for lang in LANGUAGES])
91
  gr.Markdown(formatted_language_list)
92
  with gr.Row():
93
  with gr.Accordion("Try Multilingual Text Examples", open=False):