Add model auto-download and English logging

This commit is contained in:
Dymas
2026-06-06 12:47:59 +02:00
parent d8b92d5025
commit 0c7f93d067
17 changed files with 204 additions and 77 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ def create_temp_file(suffix: str = ".wav") -> str:
"""
fd, temp_path = tempfile.mkstemp(suffix=suffix)
os.close(fd)
logger.debug("Создан временный файл: %s", temp_path)
logger.debug("Created temporary file: %s", temp_path)
return temp_path
@@ -36,6 +36,6 @@ def cleanup_temp_files(file_paths: list) -> None:
try:
if os.path.exists(path):
os.remove(path)
logger.debug("Удалён временный файл: %s", path)
logger.debug("Removed temporary file: %s", path)
except Exception as e:
logger.warning("Не удалось очистить временный файл %s: %s", path, e)
logger.warning("Failed to clean up temporary file %s: %s", path, e)