Gameel commited on
Commit
4255a50
1 Parent(s): 59608c6

Create app.py

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