oyemade's picture
Update app.py
6974b68 verified
raw
history blame contribute delete
610 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline("automatic-speech-recognition", model="oyemade/w2v-bert-2.0-igbo-CV17.0")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
transcribe,
gr.Audio(sources="microphone", type="filepath"),
"text",
title="Neoform AI: Igbo Speech Recognition",
description="Realtime demo for Igbo speech recognition using a fine-tuned Wav2Vec-Bert model. https://neoformai.com /n NOTE: If you get an error after pressing submit, give the audio some secs to load then try again.",
)
iface.launch()