Spaces:
Running
Running
File size: 325 Bytes
5517217 d67af07 5517217 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |