Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,6 +75,7 @@ Demo for cascaded speech-to-speech translation (STST), mapping from source speec
|
|
75 |
[SpeechT5 TTS](https://huggingface.co/microsoft/speecht5_tts) model for text-to-speech, fine-tuned in French Audio dataset:
|
76 |

|
77 |
"""
|
|
|
78 |
|
79 |
mic_translate = gr.Interface(
|
80 |
fn=speech_to_speech_translation,
|
@@ -93,8 +94,10 @@ file_translate = gr.Interface(
|
|
93 |
description=description,
|
94 |
)
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
99 |
|
100 |
|
|
|
75 |
[SpeechT5 TTS](https://huggingface.co/microsoft/speecht5_tts) model for text-to-speech, fine-tuned in French Audio dataset:
|
76 |

|
77 |
"""
|
78 |
+
demo = gr.Blocks()
|
79 |
|
80 |
mic_translate = gr.Interface(
|
81 |
fn=speech_to_speech_translation,
|
|
|
94 |
description=description,
|
95 |
)
|
96 |
|
97 |
+
with demo:
|
98 |
+
gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
|
99 |
+
|
100 |
+
demo.launch()
|
101 |
+
|
102 |
|
103 |
|