Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -21,10 +21,10 @@ transformers = await import_transformers_js()
|
|
21 |
pipeline = transformers.pipeline
|
22 |
pipe = await pipeline('automatic-speech-recognition ')
|
23 |
|
24 |
-
async def
|
25 |
return await pipe(text)
|
26 |
|
27 |
-
demo = gr.Interface(
|
28 |
demo.launch()
|
29 |
</gradio-file>
|
30 |
|
|
|
21 |
pipeline = transformers.pipeline
|
22 |
pipe = await pipeline('automatic-speech-recognition ')
|
23 |
|
24 |
+
async def transcribe(text):
|
25 |
return await pipe(text)
|
26 |
|
27 |
+
demo = gr.Interface(transcribe, "audio", "textbox")
|
28 |
demo.launch()
|
29 |
</gradio-file>
|
30 |
|