radames commited on
Commit
4fdb487
·
1 Parent(s): 8e19aae

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+
5
+ model = pipeline(task="automatic-speech-recognition",
6
+ model="facebook/s2t-medium-librispeech-asr")
7
+ gr.Interface.from_pipeline(model,
8
+ title="Automatic Speech Recognition (ASR)",
9
+ description="Using pipeline with Facebook S2T for ASR.",
10
+ examples=['data/ljspeech.wav',]
11
+ ).launch()