Spaces:
Runtime error
Runtime error
File size: 807 Bytes
8b4c65a 4e909b7 72fadc4 24bc16a 6f7fea8 902ad14 72fadc4 2db1482 72fadc4 6f7fea8 cbb2414 79284d9 cbb2414 6f7fea8 8b4c65a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import numpy as np
import gradio as gr
from gradio.mix import Series
import os
os.environ['CUDA_LAUNCH_BLOCKING'] = '1' # added after repeated runtime erros (seems with whisper)
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"
whisper = gr.Interface.load("models/openai/whisper-base")
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()
|