Seidazymov Adil commited on
Commit ·
54e47cf
1
Parent(s): 0e20f63
Final 1.8
Browse files82 unmodified lines8384858687888982 unmodified linesresult_text = request_gradio(file_path, language) or ""result_emotion = detect_emotion(file_path) or "unknown"result_toxic = detect_toxic_local(result_text) or Falsereturn json.dumps({"language": language, "transcript": result_text, "emotion": result_emotion, "toxic": result_toxic,})gradio_app = gr.Interface(82 unmodified lines8384858687888982 unmodified linesresult_text = request_gradio(file_path, language) or ""result_emotion = detect_emotion(file_path) or "unknown"result_toxic = detect_toxic_local(result_text) or Falsereturn json.dumps({"language": language, "emotion": result_emotion, "toxic": result_toxic,})gradio_app = gr.Interface(
app.py+1-1