👍️[Update] Model : モデルのダウンロード処理をスレッドで進行するように変更
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user