Spaces:
Runtime error
Runtime error
Commit
·
5c183fe
1
Parent(s):
feccae1
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,8 @@ def translate_and_classify(audio):
|
|
| 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 = """
|
|
|
|
| 40 |
print("Translated: " + translation.text)
|
| 41 |
|
| 42 |
emotion = emotion_classifier(translation.text)
|
| 43 |
+
detected_emotion = emotion[0][0]
|
| 44 |
+
print("Detected Emotions are", detected_emotion)
|
| 45 |
return transcription.text, detected_emotion
|
| 46 |
|
| 47 |
css = """
|