dtkne commited on
Commit
93d849e
·
verified ·
1 Parent(s): fa064b6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+ asr = pipeline(task="automatic-speech-recognition",
4
+ model="distil-whisper/distil-small.en")
5
+ def launch(input):
6
+ out = asr.input
7
+ return out[0]['text']