Skip to content

Commit 7f61d0b

Browse files
committed
fix style
1 parent 2507c8e commit 7f61d0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gguf-py/gguf/utility.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def naming_convention(model_name: str | None, base_name: str | None, finetune_st
7070

7171
return f"{name}{parameters}{finetune}{version}{encoding}{kind}"
7272

73+
7374
class SafetensorRemote:
7475
"""
7576
Uility class to handle remote safetensor files.
@@ -232,7 +233,7 @@ def check_file_exist(cls, url: str) -> bool:
232233
raise ValueError(f"Invalid URL: {url}")
233234

234235
try:
235-
headers = {"Range": f"bytes=0-0"}
236+
headers = {"Range": "bytes=0-0"}
236237
response = requests.head(url, allow_redirects=True, headers=headers)
237238
# Success (2xx) or redirect (3xx)
238239
return 200 <= response.status_code < 400

0 commit comments

Comments
 (0)