Spaces:
Sleeping
Sleeping
Commit
·
66d6b16
1
Parent(s):
fa4cce4
Use newer gradio version
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🎤
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 3.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
duplicated_from: ayymen/MMS-ASR
|
|
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 3.37.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
duplicated_from: ayymen/MMS-ASR
|
app.py
CHANGED
|
@@ -61,11 +61,10 @@ examples = [
|
|
| 61 |
["minangkabau.mp3", None, "Minangkabau (min)"],
|
| 62 |
]
|
| 63 |
|
| 64 |
-
description = '''Automatic Speech Recognition with [MMS](https://ai.facebook.com/blog/multilingual-model-speech-recognition/) (Massively Multilingual Speech) by Meta.
|
| 65 |
-
Supports [1162 languages](https://dl.fbaipublicfiles.com/mms/misc/language_coverage_mms.html). Read the paper for more details: [Scaling Speech Technology to 1,000+ Languages](https://arxiv.org/abs/2305.13516).'''
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
inputs=[
|
| 70 |
gr.Audio(source="microphone", type="filepath", label="Record Audio"),
|
| 71 |
gr.Audio(source="upload", type="filepath", label="Upload Audio"),
|
|
@@ -74,5 +73,7 @@ iface = gr.Interface(
|
|
| 74 |
outputs=gr.Textbox(label="Transcription"),
|
| 75 |
examples=examples,
|
| 76 |
description=description
|
| 77 |
-
)
|
| 78 |
-
|
|
|
|
|
|
|
|
|
| 61 |
["minangkabau.mp3", None, "Minangkabau (min)"],
|
| 62 |
]
|
| 63 |
|
| 64 |
+
description = '''Automatic Speech Recognition with [MMS](https://ai.facebook.com/blog/multilingual-model-speech-recognition/) (Massively Multilingual Speech) by Meta.'''
|
|
|
|
| 65 |
|
| 66 |
+
demo = gr.Interface(
|
| 67 |
+
transcribe,
|
| 68 |
inputs=[
|
| 69 |
gr.Audio(source="microphone", type="filepath", label="Record Audio"),
|
| 70 |
gr.Audio(source="upload", type="filepath", label="Upload Audio"),
|
|
|
|
| 73 |
outputs=gr.Textbox(label="Transcription"),
|
| 74 |
examples=examples,
|
| 75 |
description=description
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
+
if __name__ == "__main__":
|
| 79 |
+
demo.queue(concurrency_count=1).launch()
|