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:
parent
3e8ffebdd3
commit
8c02fe9771
1 changed files with 2 additions and 1 deletions
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue