RamAnanth1 commited on
Commit
417aaff
·
1 Parent(s): 8b338c8

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
-
44
- return transcription.text, emotion
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("""