Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ mms_transcribe = gr.Interface(
|
|
30 |
[f"{k} ({v})" for k, v in ASR_LANGUAGES.items()],
|
31 |
label="Mál",
|
32 |
value="fao (Faroese)",
|
33 |
-
className: "hidden-dropdown"
|
34 |
),
|
35 |
# gr.Checkbox(label="Use Language Model (if available)", default=True),
|
36 |
],
|
@@ -97,18 +97,6 @@ tabbed_interface = gr.TabbedInterface(
|
|
97 |
)
|
98 |
|
99 |
with gr.Blocks() as demo:
|
100 |
-
gr.Markdown(
|
101 |
-
"<p align='center' style='font-size: 20px;'>MMS: Scaling Speech Technology to 1000+ languages demo. See our <a href='https://ai.facebook.com/blog/multilingual-model-speech-recognition/'>blog post</a> and <a href='https://arxiv.org/abs/2305.13516'>paper</a>.</p>"
|
102 |
-
)
|
103 |
-
gr.HTML(
|
104 |
-
"""<center>Click on the appropriate tab to explore Speech-to-text (ASR), Text-to-speech (TTS) and Language identification (LID) demos. </center>"""
|
105 |
-
)
|
106 |
-
gr.HTML(
|
107 |
-
"""<center>You can also finetune MMS models on your data using the recipes provides here - <a href='https://huggingface.co/blog/mms_adapters'>ASR</a> <a href='https://github.com/ylacombe/finetune-hf-vits'>TTS</a> </center>"""
|
108 |
-
)
|
109 |
-
gr.HTML(
|
110 |
-
"""<center><a href="https://huggingface.co/spaces/facebook/MMS?duplicate=true" style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank"><img style="margin-bottom: 0em;display: inline;margin-top: -.25em;" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> for more control and no queue.</center>"""
|
111 |
-
)
|
112 |
|
113 |
tabbed_interface.render()
|
114 |
mms_select_source_trans.change(
|
@@ -133,7 +121,7 @@ with gr.Blocks() as demo:
|
|
133 |
"""
|
134 |
<div class="footer" style="text-align:center">
|
135 |
<p>
|
136 |
-
|
137 |
</p>
|
138 |
</div>
|
139 |
"""
|
|
|
30 |
[f"{k} ({v})" for k, v in ASR_LANGUAGES.items()],
|
31 |
label="Mál",
|
32 |
value="fao (Faroese)",
|
33 |
+
className: "hidden-dropdown"
|
34 |
),
|
35 |
# gr.Checkbox(label="Use Language Model (if available)", default=True),
|
36 |
],
|
|
|
97 |
)
|
98 |
|
99 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
tabbed_interface.render()
|
102 |
mms_select_source_trans.change(
|
|
|
121 |
"""
|
122 |
<div class="footer" style="text-align:center">
|
123 |
<p>
|
124 |
+
<a href="https://ai.facebook.com" style="text-decoration: underline;" target="_blank">Meta AI</a> gjørdi málmyndilin - Koyrir á 🤗 Hugging Face
|
125 |
</p>
|
126 |
</div>
|
127 |
"""
|