dream_II / app.py
lorenzoscottb's picture
Update app.py
2cb1396
raw
history blame
754 Bytes
import gradio as gr
from gradio.mix import Series
description = "This space mixes DReAMy's large-multilingual [emotion-classification model](https://github.com/lorenzoscottb/DReAMy) with Whisper from OpenAI, to classify recordings on their emotional content accordingly to the Hall and Van de Castle framework. For more details, see the [Bertolini et al., 23](https://arxiv.org/abs/2302.14828v1) pre-print."
title = "DReAM v. II"
whisper = gr.Interface.load("models/openai/whisper-large")
interface_model_L = gr.Interface.load("models/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence")
Series(
whisper,
interface_model_L,
description = description,
title = title,
inputs = gr.Audio(source="microphone"),
).launch()