Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
944e4f0
1
Parent(s):
2804592
fix: remove interactivity from audio input components for clarity
Browse files
app.py
CHANGED
@@ -206,8 +206,7 @@ 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 |
-
interactive=(model is not None)
|
211 |
)
|
212 |
|
213 |
clear_btn = gr.Button("Clear Transcript", variant="secondary")
|
@@ -231,8 +230,7 @@ with gr.Blocks(title="Real-time Speech-to-Text with NeMo") as demo:
|
|
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")
|
|
|
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 |
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")
|