Egor Kopylov
init
5517217
raw
history blame
324 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("audio-classification", model="Aniemore/wavlm-emotion-russian-resd")
def recognize(name):
return pipe(name)
demo = gr.Interface(
fn=recognize,
inputs=[
gr.Audio(source="microphone", type="filepath")
], outputs="text")
demo.launch()