Seidazymov Adil
commited on
Commit
•
884f987
1
Parent(s):
54e47cf
Final 1.9
Browse files
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(
|