Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2804592
1
Parent(s):
8d5b897
fix: make audio input components interactive based on model availability
Browse files
app.py
CHANGED
@@ -206,7 +206,8 @@ with gr.Blocks(title="Real-time Speech-to-Text with NeMo") as demo:
|
|
206 |
sources=["microphone"],
|
207 |
type="numpy",
|
208 |
streaming=True,
|
209 |
-
label="Speak into your microphone"
|
|
|
210 |
)
|
211 |
|
212 |
clear_btn = gr.Button("Clear Transcript", variant="secondary")
|
@@ -230,7 +231,8 @@ with gr.Blocks(title="Real-time Speech-to-Text with NeMo") as demo:
|
|
230 |
audio_recorder = gr.Audio(
|
231 |
sources=["microphone"],
|
232 |
type="filepath",
|
233 |
-
label="Record or upload audio file"
|
|
|
234 |
)
|
235 |
with gr.Row():
|
236 |
transcribe_btn = gr.Button("Transcribe Audio File", variant="primary")
|
|
|
206 |
sources=["microphone"],
|
207 |
type="numpy",
|
208 |
streaming=True,
|
209 |
+
label="Speak into your microphone",
|
210 |
+
interactive=(model is not None)
|
211 |
)
|
212 |
|
213 |
clear_btn = gr.Button("Clear Transcript", variant="secondary")
|
|
|
231 |
audio_recorder = gr.Audio(
|
232 |
sources=["microphone"],
|
233 |
type="filepath",
|
234 |
+
label="Record or upload audio file",
|
235 |
+
interactive=(model is not None)
|
236 |
)
|
237 |
with gr.Row():
|
238 |
transcribe_btn = gr.Button("Transcribe Audio File", variant="primary")
|