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="label") demo.launch()