Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
pipe = pipeline(task="automatic-speech-recognition",
|
4 |
+
model="openai/whisper-tiny")
|
5 |
+
gr.Interface.from_pipeline(pipe,
|
6 |
+
title="Automatic Speech Recognition (ASR)",
|
7 |
+
description="Using pipeline with OpenAI Whisper",
|
8 |
+
examples=['assets/ljspeech.wav',],
|
9 |
+
).launch(inbrowser=True)
|