Spaces:
Running
Running
Update index.html
Browse files- 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 |
|