👍️[Update] Model : モデルのダウンロード処理をスレッドで進行するように変更

This commit is contained in:
misyaguziya
2024-09-04 14:19:21 +09:00
parent 93ba4a0155
commit 9d7819b186
5 changed files with 21 additions and 12 deletions

View File

@@ -40,6 +40,7 @@ def downloadFile(url, path, func=None):
if isinstance(func, Callable):
total_chunk += len(chunk)
func(total_chunk/file_size)
printLog(f"Downloading Whisper Model: {total_chunk/file_size:.0%}")
except Exception as e:
printLog("warning:downloadFile()", e)