Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from tts import synthesize, TTS_EXAMPLES
|
|
| 5 |
|
| 6 |
ALL_LANGUAGES = {}
|
| 7 |
|
| 8 |
-
for task in ["
|
| 9 |
ALL_LANGUAGES.setdefault(task, {})
|
| 10 |
with open(f"data/{task}/all_langs.tsv") as f:
|
| 11 |
for line in f:
|
|
@@ -87,8 +87,8 @@ mms_identify = gr.Interface(
|
|
| 87 |
|
| 88 |
with demo:
|
| 89 |
gr.TabbedInterface(
|
| 90 |
-
[
|
| 91 |
-
["
|
| 92 |
)
|
| 93 |
|
| 94 |
demo.launch()
|
|
|
|
| 5 |
|
| 6 |
ALL_LANGUAGES = {}
|
| 7 |
|
| 8 |
+
for task in ["tts", "asr", "lid"]:
|
| 9 |
ALL_LANGUAGES.setdefault(task, {})
|
| 10 |
with open(f"data/{task}/all_langs.tsv") as f:
|
| 11 |
for line in f:
|
|
|
|
| 87 |
|
| 88 |
with demo:
|
| 89 |
gr.TabbedInterface(
|
| 90 |
+
[mms_synthesize, mms_transcribe, mms_identify],
|
| 91 |
+
["Text-to-speech", "Speech-to-text", "Language Identification"],
|
| 92 |
)
|
| 93 |
|
| 94 |
demo.launch()
|