jsbeaudry's picture
Update app.py
14e6d21 verified
raw
history blame
440 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="jsbeaudry/whisper-medium-oswald")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(type="filepath"),
outputs="text",
title="Whisper Small Creole",
description="Realtime demo for Creole speech recognition using a fine-tuned medium small model.",
)
iface.launch()