Seidazymov Adil commited on
Commit
1e35524
1 Parent(s): 0830206
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -61,8 +61,7 @@ def detect_emotion(audio):
61
  emotion_with_max_score = res[0]["label"]
62
  return emotion_with_max_score
63
  except Exception as e:
64
- print(f"Emotion detection failed: {e}")
65
- return None
66
 
67
 
68
  def detect_toxic_local(text_whisper):
 
61
  emotion_with_max_score = res[0]["label"]
62
  return emotion_with_max_score
63
  except Exception as e:
64
+ return f"Emotion detection failed: {e}"
 
65
 
66
 
67
  def detect_toxic_local(text_whisper):