Spaces:
Sleeping
Sleeping
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() | |