Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from transformers import pipeline
|
| 3 |
+
asr = pipeline(task="automatic-speech-recognition",
|
| 4 |
+
model="distil-whisper/distil-small.en")
|
| 5 |
+
def launch(input):
|
| 6 |
+
out = asr.input
|
| 7 |
+
return out[0]['text']
|