pollitoconpapass's picture
Update app.py
29f6727 verified
raw
history blame contribute delete
712 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(model="pollitoconpapass/whisper-small-finetuned")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(type="filepath"),
outputs="text",
title="Whisper Small Demo - Cuzco Quechua",
description='''
Realtime demo of speech recognition fine-tuned using Whisper small model. New implementation: Quechua language.
If you want to use this as an endpoint, go to endpoint.py.
Source: https://huggingface.co/pollitoconpapass/whisper-small-finetuned
'''
)
iface.launch()