Ar4ikov's picture
Edit output from text/plain to Gradio Label
d67af07
raw
history blame
325 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="label")
demo.launch()