Skip to content

Commit

Permalink
fix: add newline
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw authored Apr 5, 2024
1 parent 596d69b commit bf6b632
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from server.helpers.huggingface_download import (
huggingface_download as huggingface_download,
)
)
2 changes: 1 addition & 1 deletion server/helpers/has_internet_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def has_internet_access(repository: str) -> bool:
return False

finally:
connection.close()
connection.close()
2 changes: 1 addition & 1 deletion server/helpers/huggingface_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ def huggingface_download(repository: str) -> str:
repository,
resume_download=True,
local_files_only=not has_internet_access(repository),
)
)
2 changes: 1 addition & 1 deletion tests/test_has_internet_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ def test_has_internet_access():

assert all([
has_internet_access('winstxnhdw/nllb-200-distilled-1.3B-ct2-int8'),
]) is True
]) is True

0 comments on commit bf6b632

Please sign in to comment.