import gradio as gr | |
from transformers import pipeline | |
pipe = pipeline(task="automatic-speech-recognition", | |
model="openai/whisper-tiny") | |
gr.Interface.from_pipeline(pipe, | |
title="Automatic Speech Recognition (ASR)", | |
description="Using pipeline with OpenAI Whisper" | |
).launch(inbrowser=True) |