reach-vb HF Staff commited on
Commit
e392a26
·
1 Parent(s): 4c9bf61

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -40,7 +40,7 @@ pipe = await pipeline('automatic-speech-recognition', 'Xenova/whisper-tiny.en')
40
  async def transcribe(audio):
41
  return await pipe(as_url(audio))
42
 
43
- demo = gr.Interface(transcribe, "audio", "json")
44
  demo.launch()
45
  </gradio-file>
46
 
 
40
  async def transcribe(audio):
41
  return await pipe(as_url(audio))
42
 
43
+ demo = gr.Interface(transcribe, gr.Audio(label="Input audio", type="filepath"), "json")
44
  demo.launch()
45
  </gradio-file>
46