GavinHuang commited on
Commit
8c34a9f
·
1 Parent(s): 1ffedb9

update Gradio version in requirements and fix indentation in transcribe function

Browse files
Files changed (2) hide show
  1. app.py +2 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -51,11 +51,10 @@ def transcribe(audio, state=""):
51
  with gr.Blocks(title="Real-time Speech-to-Text with NeMo") as demo:
52
  gr.Markdown("# 🎙️ Real-time Speech-to-Text Transcription")
53
  gr.Markdown("Powered by NVIDIA NeMo and the parakeet-tdt-0.6b-v2 model")
54
-
55
- with gr.Row():
56
  with gr.Column(scale=2):
57
  audio_input = gr.Audio(
58
- source="microphone",
59
  type="numpy",
60
  streaming=True,
61
  label="Speak into your microphone"
 
51
  with gr.Blocks(title="Real-time Speech-to-Text with NeMo") as demo:
52
  gr.Markdown("# 🎙️ Real-time Speech-to-Text Transcription")
53
  gr.Markdown("Powered by NVIDIA NeMo and the parakeet-tdt-0.6b-v2 model")
54
+ with gr.Row():
 
55
  with gr.Column(scale=2):
56
  audio_input = gr.Audio(
57
+ sources=["microphone"],
58
  type="numpy",
59
  streaming=True,
60
  label="Speak into your microphone"
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  torch>=1.13.0
2
- gradio>=3.32.0
3
  nemo_toolkit[asr]>=1.18.0
4
  omegaconf>=2.2.0
5
  numpy>=1.22.0
 
1
  torch>=1.13.0
2
+ gradio>=4.0.0
3
  nemo_toolkit[asr]>=1.18.0
4
  omegaconf>=2.2.0
5
  numpy>=1.22.0