Seidazymov Adil
commited on
Commit
·
1e35524
1
Parent(s):
0830206
Final 1.6
Browse files
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 |
-
|
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):
|