Spaces:
Running
on
Zero
Running
on
Zero
github-actions[bot]
commited on
Commit
·
483f81f
1
Parent(s):
7805d51
Sync with https://github.com/mozilla-ai/speech-to-text-finetune
Browse files
app.py
CHANGED
@@ -92,7 +92,8 @@ def setup_gradio_demo():
|
|
92 |
### 1. Select a language from the dropdown menu.
|
93 |
### 2. Select which model to load from one of the options below.
|
94 |
### 3. Load the model by clicking the Load model button.
|
95 |
-
### 4. Record a message
|
|
|
96 |
"""
|
97 |
)
|
98 |
### Language & Model selection ###
|
@@ -122,9 +123,9 @@ def setup_gradio_demo():
|
|
122 |
|
123 |
### Transcription ###
|
124 |
audio_input = gr.Audio(
|
125 |
-
sources=["
|
126 |
type="filepath",
|
127 |
-
label="Record a message",
|
128 |
show_download_button=True,
|
129 |
max_length=30,
|
130 |
)
|
|
|
92 |
### 1. Select a language from the dropdown menu.
|
93 |
### 2. Select which model to load from one of the options below.
|
94 |
### 3. Load the model by clicking the Load model button.
|
95 |
+
### 4. Record a message or upload an audio file.
|
96 |
+
### 5. Click Transcribe to see the transcription generated by the model.
|
97 |
"""
|
98 |
)
|
99 |
### Language & Model selection ###
|
|
|
123 |
|
124 |
### Transcription ###
|
125 |
audio_input = gr.Audio(
|
126 |
+
sources=["microphone", "upload"],
|
127 |
type="filepath",
|
128 |
+
label="Record a message / Upload audio file",
|
129 |
show_download_button=True,
|
130 |
max_length=30,
|
131 |
)
|