File size: 700 Bytes
8b4c65a
4e909b7
72fadc4
 
 
2db1482
 
72fadc4
8b4c65a
cbb2414
3995742
cbb2414
8b4c65a
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

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()