foobar commited on
Commit
fb3b93d
·
1 Parent(s): d3030a3

changed to gr.Audio(sources=...)

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def transcribe(audio):
20
 
21
  iface = gr.Interface(
22
  fn=transcribe,
23
- inputs=gr.inputs.Audio(source="microphone", type="filepath"),
24
  outputs="text",
25
  title="Whisper small nato phonetic alphabet",
26
  description="This is a demo of the whisper model fine-tuned on the nato phonetic alphabet. Speak into the microphone",
@@ -28,3 +28,7 @@ iface = gr.Interface(
28
 
29
  iface.launch()
30
 
 
 
 
 
 
20
 
21
  iface = gr.Interface(
22
  fn=transcribe,
23
+ inputs=gr.Audio(sources="microphone", type="filepath"),
24
  outputs="text",
25
  title="Whisper small nato phonetic alphabet",
26
  description="This is a demo of the whisper model fine-tuned on the nato phonetic alphabet. Speak into the microphone",
 
28
 
29
  iface.launch()
30
 
31
+
32
+
33
+
34
+