Spaces:
Runtime error
Runtime error
Commit
·
417aaff
1
Parent(s):
8b338c8
Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ def translate_and_classify(audio):
|
|
40 |
print("Translated: " + translation.text)
|
41 |
|
42 |
emotion = emotion_classifier(translation.text)
|
43 |
-
|
44 |
-
return transcription.text,
|
45 |
|
46 |
with gr.Blocks() as demo:
|
47 |
gr.Markdown("""
|
|
|
40 |
print("Translated: " + translation.text)
|
41 |
|
42 |
emotion = emotion_classifier(translation.text)
|
43 |
+
detected_emotion = emotion[0]["label"]
|
44 |
+
return transcription.text, detected_emotion
|
45 |
|
46 |
with gr.Blocks() as demo:
|
47 |
gr.Markdown("""
|