RamAnanth1 commited on
Commit
feccae1
·
1 Parent(s): f9e272f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #detected_emotion = emotion[0]["label"]
44
- return transcription.text, emotion
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 {