Seidazymov Adil commited on
Commit
0830206
1 Parent(s): 51e0823
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def detect_toxic_local(text_whisper):
82
  def assessment(file_path):
83
  language = detect_language(file_path) or "unknown"
84
  result_text = request_gradio(file_path, language) or ""
85
- result_emotion = detect_emotion(result_text) or "unknown"
86
  result_toxic = detect_toxic_local(result_text) or False
87
  return json.dumps({"language": language, "transcript": result_text, "emotion": result_emotion, "toxic": result_toxic,})
88
 
 
82
  def assessment(file_path):
83
  language = detect_language(file_path) or "unknown"
84
  result_text = request_gradio(file_path, language) or ""
85
+ result_emotion = detect_emotion(file_path) or "unknown"
86
  result_toxic = detect_toxic_local(result_text) or False
87
  return json.dumps({"language": language, "transcript": result_text, "emotion": result_emotion, "toxic": result_toxic,})
88