Spaces:
Sleeping
Sleeping
Commit
·
d750362
1
Parent(s):
8e1dbfb
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from transformers import pipeline
|
| 3 |
+
|
| 4 |
+
import sentencepiece
|
| 5 |
+
pipe = pipeline(task ="automatic-speech-recognition",model="facebook/s2t-medium-librispeech-asr")
|
| 6 |
+
|
| 7 |
+
gr.Interface.from_pipeline(pipe,title="Automatic Speech Recognition (ASR)",description="Using pipeline with Facebook S2T for ASR.").launch(inbrowser=True)
|