Open jxyk2007 opened 1 month ago
编辑
/root/miniconda3/envs/omni/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py import os from pathlib import Path from typing import Dict, List, Literal, Optional, Union import requests from tqdm.auto import tqdm as base_tqdm from tqdm.contrib.concurrent import thread_map from . import constants from .errors import GatedRepoError, LocalEntryNotFoundError, RepositoryNotFoundError, RevisionNotFoundError from .file_download import REGEX_COMMIT_HASH, hf_hub_download, repo_folder_name from .hf_api import DatasetInfo, HfApi, ModelInfo, SpaceInfo from .utils import ( OfflineModeIsEnabled, filter_repo_objects, logging, validate_hf_hub_args, ) from .utils import tqdm as hf_tqdm os.environ["http_proxy"] = "http://192.168.250.249:1080" #加这个 os.environ["https_proxy"] = "http://192.168.250.249:1080" #加这个 ``` `
谢谢1
编辑