Spaces:
Sleeping
Sleeping
Add debug logging to trace IsADirectoryError
Browse files
app.py
CHANGED
|
@@ -101,6 +101,14 @@ def _diarize_action(
|
|
| 101 |
]
|
| 102 |
# Đảm bảo prepared_path là file path hợp lệ, không phải None hoặc directory
|
| 103 |
audio_file_output = str(prepared_path) if prepared_path and Path(prepared_path).is_file() else None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
return (
|
| 105 |
table,
|
| 106 |
str(rttm_path),
|
|
|
|
| 101 |
]
|
| 102 |
# Đảm bảo prepared_path là file path hợp lệ, không phải None hoặc directory
|
| 103 |
audio_file_output = str(prepared_path) if prepared_path and Path(prepared_path).is_file() else None
|
| 104 |
+
|
| 105 |
+
# Debug logging
|
| 106 |
+
import sys
|
| 107 |
+
print(f"DEBUG: prepared_path={prepared_path}, type={type(prepared_path)}", file=sys.stderr)
|
| 108 |
+
print(f"DEBUG: rttm_path={rttm_path}, exists={Path(rttm_path).exists()}", file=sys.stderr)
|
| 109 |
+
print(f"DEBUG: json_path={json_path}, exists={Path(json_path).exists()}", file=sys.stderr)
|
| 110 |
+
print(f"DEBUG: audio_file_output={audio_file_output}", file=sys.stderr)
|
| 111 |
+
|
| 112 |
return (
|
| 113 |
table,
|
| 114 |
str(rttm_path),
|