dream_II / app.py
lorenzoscottb's picture
Update app.py
3995742
raw
history blame
700 Bytes
import numpy as np
import gradio as gr
from gradio.mix import Series
description = "This space mixes the large-multilingual [emotion classification model of DReAMy](https://github.com/lorenzoscottb/DReAMy) with the whisper model from OpenAI, to directly classify recording according to the Hall and Van de Castle framework, with respect to emotions."
title = "DReAM v. II"
wisper = gr.Interface.load("models/openai/whisper-base")
interface_model_L = gr.Interface.load("huggingface/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence")
Series(
wisper,
interface_model_L,
description = description,
title = title,
inputs = gr.Audio(source="microphone"),
).launch()