ysharma HF staff commited on
Commit
cf4c48f
1 Parent(s): ee022a5

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -11
index.html CHANGED
@@ -21,19 +21,11 @@
21
  <gradio-lite>
22
  <gradio-file name="app.py" entrypoint>
23
  import gradio as gr
 
24
 
25
- from filters import as_gray
26
 
27
- def process(input_image):
28
- output_image = as_gray(input_image)
29
- return output_image
30
-
31
- demo = gr.Interface(
32
- process,
33
- "image",
34
- "image",
35
- examples=["lion.jpg", "logo.png"],
36
- )
37
 
38
  demo.launch()
39
  </gradio-file>
 
21
  <gradio-lite>
22
  <gradio-file name="app.py" entrypoint>
23
  import gradio as gr
24
+ from transformers_js_py import pipeline
25
 
26
+ pipe = await pipeline('automatic-speech-recognition')
27
 
28
+ demo = gr.Interface.from_pipeline(pipe)
 
 
 
 
 
 
 
 
 
29
 
30
  demo.launch()
31
  </gradio-file>