Spaces:
Running
on
Zero
Running
on
Zero
github-actions[bot]
commited on
Commit
·
b669864
1
Parent(s):
1101d94
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,7 +123,11 @@ def setup_gradio_demo():
|
|
122 |
|
123 |
### Transcription ###
|
124 |
audio_input = gr.Audio(
|
125 |
-
sources=["microphone"
|
|
|
|
|
|
|
|
|
126 |
)
|
127 |
transcribe_button = gr.Button("Transcribe")
|
128 |
transcribe_output = gr.Text(label="Output")
|
|
|
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 |
)
|
132 |
transcribe_button = gr.Button("Transcribe")
|
133 |
transcribe_output = gr.Text(label="Output")
|