Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/huggingface_hub/file_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ def try_to_load_from_cache(
def get_hf_file_metadata(
url: str,
token: Union[bool, str, None] = None,
timeout: Optional[float] = constants.DEFAULT_REQUEST_TIMEOUT,
timeout: Optional[float] = constants.HF_HUB_ETAG_TIMEOUT,
library_name: Optional[str] = None,
library_version: Optional[str] = None,
user_agent: Union[dict, str, None] = None,
Expand Down
2 changes: 1 addition & 1 deletion src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5243,7 +5243,7 @@ def get_hf_file_metadata(
*,
url: str,
token: Union[bool, str, None] = None,
timeout: Optional[float] = constants.DEFAULT_REQUEST_TIMEOUT,
timeout: Optional[float] = constants.HF_HUB_ETAG_TIMEOUT,
) -> HfFileMetadata:
"""Fetch metadata of a file versioned on the Hub for a given url.

Expand Down
Loading