Seidazymov Adil commited on
Commit ·
1e35524
1
Parent(s): 0830206
Final 1.6
Browse files60 unmodified lines616263646566676860 unmodified linesemotion_with_max_score = res[0]["label"]return emotion_with_max_scoreexcept Exception as e:print(f"Emotion detection failed: {e}")return Nonedef detect_toxic_local(text_whisper):60 unmodified lines6162636465666760 unmodified linesemotion_with_max_score = res[0]["label"]return emotion_with_max_scoreexcept Exception as e:return f"Emotion detection failed: {e}"def detect_toxic_local(text_whisper):
app.py+1-2