Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def gen_speech(text, lang):
|
|
76 |
case "es":
|
77 |
model = "facebook/mms-tts-spa"
|
78 |
case _:
|
79 |
-
model = "facebook/mms-tts
|
80 |
|
81 |
# load TTS model
|
82 |
tts_model = VitsModel.from_pretrained(model)
|
@@ -110,8 +110,8 @@ with playground:
|
|
110 |
gr.Markdown("""
|
111 |
## Your AI Translate Assistant
|
112 |
### Gets input audio from user, transcribe and translate it. Convert back to speech.
|
113 |
-
- category: Automatic Speech Recognition, model: [nvidia/canary-1b](https://huggingface.co/nvidia/canary-1b)
|
114 |
-
- category: Text-to-Speech, model: [facebook/mms-tts
|
115 |
""")
|
116 |
|
117 |
with gr.Row():
|
|
|
76 |
case "es":
|
77 |
model = "facebook/mms-tts-spa"
|
78 |
case _:
|
79 |
+
model = "facebook/mms-tts"
|
80 |
|
81 |
# load TTS model
|
82 |
tts_model = VitsModel.from_pretrained(model)
|
|
|
110 |
gr.Markdown("""
|
111 |
## Your AI Translate Assistant
|
112 |
### Gets input audio from user, transcribe and translate it. Convert back to speech.
|
113 |
+
- category: [Automatic Speech Recognition](https://huggingface.co/models?pipeline_tag=automatic-speech-recognition), model: [nvidia/canary-1b](https://huggingface.co/nvidia/canary-1b)
|
114 |
+
- category: [Text-to-Speech](https://huggingface.co/models?pipeline_tag=text-to-speech), model: [facebook/mms-tts](https://huggingface.co/facebook/mms-tts)
|
115 |
""")
|
116 |
|
117 |
with gr.Row():
|