bailandoapp / app.py
awitpao's picture
Create app.py
208dc60
raw
history blame contribute delete
639 Bytes
import gradio as gr
from transformers import pipeline
import numpy
pipe = pipeline(task="audio-classification", model="Rajaram1996/Hubert_emotion")
gr.Interface.from_pipeline(pipe,
title="Audio Emotion Classification",
description="It will predict the mix of emotions present in the audio file",
inputs = gr.inputs.Audio(source="upload", type="numpy"),
outputs = gr.outputs.Label(num_top_classes=5),
allow_flagging="never"
).launch(inbrowser=True)