Skip to content

Commit 1292211

Browse files
committed
Add missing line
1 parent 60f33b9 commit 1292211

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ def repo_type_and_id_from_hf_id(hf_id: str, hub_url: Optional[str] = None) -> tu
237237
input_hf_id = hf_id
238238

239239
hub_url = hub_url if hub_url is not None else constants.ENDPOINT
240+
is_hf_url = hub_url in hf_id and "@" not in hf_id
241+
240242
hub_url = hub_url.rstrip("/")
241243
if hf_id.startswith(hub_url):
242244
hf_id = hf_id[len(hub_url):].lstrip("/")

0 commit comments

Comments
 (0)