Add model auto-download and English logging
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user