Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def synthesise(text):
|
|
41 |
def speech_to_speech_translation(audio):
|
42 |
translated_text = translate(audio)
|
43 |
synthesised_speech = synthesise(translated_text)
|
44 |
-
synthesised_speech = (synthesised_speech.numpy()
|
45 |
return 16000, synthesised_speech
|
46 |
|
47 |
|
@@ -67,6 +67,7 @@ file_translate = gr.Interface(
|
|
67 |
fn=speech_to_speech_translation,
|
68 |
inputs=gr.Audio(source="upload", type="filepath"),
|
69 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
|
|
70 |
title=title,
|
71 |
description=description,
|
72 |
)
|
|
|
41 |
def speech_to_speech_translation(audio):
|
42 |
translated_text = translate(audio)
|
43 |
synthesised_speech = synthesise(translated_text)
|
44 |
+
synthesised_speech = (synthesised_speech.numpy())
|
45 |
return 16000, synthesised_speech
|
46 |
|
47 |
|
|
|
67 |
fn=speech_to_speech_translation,
|
68 |
inputs=gr.Audio(source="upload", type="filepath"),
|
69 |
outputs=gr.Audio(label="Generated Speech", type="numpy"),
|
70 |
+
examples=[["./example.wav"]],
|
71 |
title=title,
|
72 |
description=description,
|
73 |
)
|