whisper-ru / app.py
saad177's picture
try using ru model
c494b72
raw
history blame
382 Bytes
from transformers import pipeline
import gradio as gr
model = pipeline(model="SofiaK/checkpoints")
iface = gr.Interface(
fn=lambda audio: model(audio)["text"],
inputs=gr.Audio(sources=["upload", "microphone"], type="filepath"),
outputs=gr.Text(label="Model output"),
title="Whisper-RU",
description="Fine-tuned Whisper for Russian language",
)
iface.launch()