Spaces:
Runtime error
Runtime error
Commit
·
feccae1
1
Parent(s):
f9e272f
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 |
css = """
|
| 47 |
.gradio-container {
|
|
|
|
| 40 |
print("Translated: " + translation.text)
|
| 41 |
|
| 42 |
emotion = emotion_classifier(translation.text)
|
| 43 |
+
detected_emotion = emotion[0]
|
| 44 |
+
return transcription.text, detected_emotion
|
| 45 |
|
| 46 |
css = """
|
| 47 |
.gradio-container {
|