Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
| 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"
|
| 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):
|