jsbeaudry's picture
Update app.py
0b5e9a5 verified
raw
history blame
441 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 Whisper small model.",
)
iface.launch()