Downloader: Disable timeout

This prevents TimeoutErrors from showing up. However, a longer
timeout may be necessary since this is in the API. Turning it off
for now will help resolve immediate errors.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-07-23 21:37:53 -04:00
parent 3e8ffebdd3
commit 8c02fe9771

View file

@ -145,7 +145,8 @@ async def hf_repo_download(
logger.info(f"Saving {repo_id} to {str(download_path)}")
try:
async with aiohttp.ClientSession() as session:
timeout = aiohttp.ClientTimeout(total=None) # Turn off timeout
async with aiohttp.ClientSession(timeout=timeout) as session:
tasks = []
logger.info(f"Starting download for {repo_id}")