Spaces:
Sleeping
Sleeping
File size: 324 Bytes
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="text")
demo.launch() |