Create app.py
Browse files
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)
|