Collapseruin's picture
Update app.py
01ed9c5
raw
history blame
420 Bytes
import gradio as gr
gr.load("models/puyao/whisper-small-hi").launch()
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="microphone", type="filepath"),
outputs="text",
title="Whisper Small Chinese",
description="Realtime demo for Chinese speech recognition using a fine-tuned Whisper small model.",
)
iface.launch()