| import gradio as gr | |
| from transformers import pipeline | |
| pipe = pipeline(task="automatic-speech-recognition", | |
| model="facebook/s2t-medium-librispeech-asr") | |
| gr.Interface.from_pipeline(pipe, | |
| title="Automatic Speech Recognition (ASR)", | |
| description="Using pipeline with Facebook S2T for ASR.", | |
| # examples=['data/ljspeech.wav',], | |
| ).launch(inbrowser=True) |