abidlabs HF staff commited on
Commit
e1d979b
·
1 Parent(s): d699044

Update index.html

Browse files
Files changed (1) hide show
  1. 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 classify(text):
25
  return await pipe(text)
26
 
27
- demo = gr.Interface(classify, "textbox", "json", examples=["It's a happy day in the neighborhood", "I'm an evil penguin", "It wasn't a bad film."])
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