Seidazymov Adil commited on
Commit
51e0823
1 Parent(s): e0c6964
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def assessment(file_path):
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({"emotion": result_emotion, "toxic": result_toxic})
88
 
89
 
90
  gradio_app = gr.Interface(
 
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
 
89
 
90
  gradio_app = gr.Interface(