Spaces:
Runtime error
Runtime error
Commit Β·
c1f0978
1
Parent(s): 2db1482
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,15 @@
|
|
| 1 |
|
| 2 |
-
import os
|
| 3 |
import numpy as np
|
| 4 |
import gradio as gr
|
| 5 |
from gradio.mix import Series
|
| 6 |
|
| 7 |
-
path_to_L_model = str(os.environ['path_to_L_model'])
|
| 8 |
-
read_token = str(os.environ['read_token'])
|
| 9 |
-
|
| 10 |
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."
|
| 11 |
title = "DReAM v. II"
|
| 12 |
|
| 13 |
wisper = gr.Interface.load("models/openai/whisper-base")
|
| 14 |
|
| 15 |
interface_model_L = gr.Interface.load(
|
| 16 |
-
name=
|
| 17 |
-
api_key=read_token,
|
| 18 |
)
|
| 19 |
|
| 20 |
Series(
|
|
|
|
| 1 |
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
import gradio as gr
|
| 4 |
from gradio.mix import Series
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
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."
|
| 7 |
title = "DReAM v. II"
|
| 8 |
|
| 9 |
wisper = gr.Interface.load("models/openai/whisper-base")
|
| 10 |
|
| 11 |
interface_model_L = gr.Interface.load(
|
| 12 |
+
name="huggingface/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence",
|
|
|
|
| 13 |
)
|
| 14 |
|
| 15 |
Series(
|