NadiaHolmlund's picture
Create app.py
701a775
raw
history blame
445 Bytes
pipe = pipeline(model="NadiaHolmlund/Japanese_Fine_Tuned_Whisper_Model")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface_transcribe = gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="microphone", type="filepath"),
outputs="text",
title="Whisper Tiny Japanese",
description="Realtime demo for Japanese speech recognition using a fine-tuned Whisper tiny model.",
)
iface_transcribe.launch()