almncarlo commited on
Commit
78bc825
1 Parent(s): def81e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
-
6
- gr.Interface(fn=greet, inputs="text", outputs="text").launch()
 
 
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
 
4
+ pipe = pipeline(task="automatic-speech-recognition",
5
+ model="nvidia/canary-1b")
6
+ gr.Interface.from_pipeline(pipe,
7
+ title="Automatic Speech Recognition (ASR)",
8
+ description="Using pipeline with NVIDIA Canary",
9
+ ).launch(inbrowser=True)