whisper-se-demo / app.py
TeoJM's picture
Create app.py
b8aa96b
raw
history blame contribute delete
444 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="TeoJM/whisper-small-se")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="microphone", type="filepath"),
outputs="text",
title="Swedish Transcription using Whisper",
description="Demo for Swedish ASR using a fine-tuned Whisper small model.",
)
iface.launch()