Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ tts_demo = gr.Interface.load(
|
|
15 |
emotion_model_checkpoint = "MuntasirHossain/RoBERTa-base-finetuned-emotion"
|
16 |
emotion_model = pipeline("text-classification", model=emotion_model_checkpoint)
|
17 |
|
18 |
-
def classify_emotion_and_speech(text):
|
19 |
# Emotion classification
|
20 |
emotion_label = emotion_model(text)[0]["label"]
|
21 |
|
@@ -61,7 +61,7 @@ combined_demo = gr.Interface(
|
|
61 |
inputs="textbox",
|
62 |
outputs=["text", "audio"],
|
63 |
title=emotion_title,
|
64 |
-
theme=theme,
|
65 |
description=emotion_description,
|
66 |
examples=emotion_examples,
|
67 |
)
|
|
|
15 |
emotion_model_checkpoint = "MuntasirHossain/RoBERTa-base-finetuned-emotion"
|
16 |
emotion_model = pipeline("text-classification", model=emotion_model_checkpoint)
|
17 |
|
18 |
+
def classify_emotion_and_speech(text=""):
|
19 |
# Emotion classification
|
20 |
emotion_label = emotion_model(text)[0]["label"]
|
21 |
|
|
|
61 |
inputs="textbox",
|
62 |
outputs=["text", "audio"],
|
63 |
title=emotion_title,
|
64 |
+
theme=theme,
|
65 |
description=emotion_description,
|
66 |
examples=emotion_examples,
|
67 |
)
|