Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|