File size: 349 Bytes
d750362
caf741e
d750362
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr
import transformers
from transformers import pipeline

import sentencepiece
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.").launch(inbrowser=True)