Seidazymov Adil commited on
Commit
884f987
1 Parent(s): 54e47cf
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def assessment(file_path):
83
  result_text = request_gradio(file_path, language) or ""
84
  result_emotion = detect_emotion(file_path) or "unknown"
85
  result_toxic = detect_toxic_local(result_text) or False
86
- return json.dumps({"language": language, "emotion": result_emotion, "toxic": result_toxic,})
87
 
88
 
89
  gradio_app = gr.Interface(
 
83
  result_text = request_gradio(file_path, language) or ""
84
  result_emotion = detect_emotion(file_path) or "unknown"
85
  result_toxic = detect_toxic_local(result_text) or False
86
+ return json.dumps({"language": language, "transcription": result_text, "emotion": result_emotion, "toxic": result_toxic,})
87
 
88
 
89
  gradio_app = gr.Interface(