daemon downloading thread

This commit is contained in:
Josh Hawkins 2024-10-07 08:18:51 -05:00
parent 52a2bbc489
commit 96795200f7

View File

@ -64,7 +64,11 @@ class ModelDownloader:
"state": ModelStatusTypesEnum.downloading,
},
)
self.download_thread = threading.Thread(target=self._download_models)
self.download_thread = threading.Thread(
target=self._download_models,
name=f"_download_model_{self.model_name}",
daemon=True,
).start()
self.download_thread.start()
def _download_models(self):