smajumdar commited on
Commit
dba7e08
·
1 Parent(s): 6f41a53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -26,7 +26,7 @@ def process_audio_file(file):
26
  return data
27
 
28
 
29
- def transcribe(audio, state=""):
30
  # Grant additional context
31
  # time.sleep(1)
32
 
@@ -57,18 +57,15 @@ def transcribe(audio, state=""):
57
  iface = gr.Interface(
58
  fn=transcribe,
59
  inputs=[
60
- gr.Audio(source="microphone", type='filepath', streaming=True),
61
  "state",
 
62
  ],
63
  outputs=[
64
- "textbox",
65
  "state",
 
66
  ],
67
- layout="horizontal",
68
- theme="huggingface",
69
  title="NeMo Streaming Conformer Transducer Large - English",
70
  description="Demo for English speech recognition using Conformer Transducers",
71
- allow_flagging='never',
72
  live=True,
73
  )
74
 
 
26
  return data
27
 
28
 
29
+ def transcribe(state, audio):
30
  # Grant additional context
31
  # time.sleep(1)
32
 
 
57
  iface = gr.Interface(
58
  fn=transcribe,
59
  inputs=[
 
60
  "state",
61
+ gr.Audio(source="microphone", type='filepath', streaming=True),
62
  ],
63
  outputs=[
 
64
  "state",
65
+ "textbox",
66
  ],
 
 
67
  title="NeMo Streaming Conformer Transducer Large - English",
68
  description="Demo for English speech recognition using Conformer Transducers",
 
69
  live=True,
70
  )
71