Skip to content

Commit ba874d5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c214608 commit ba874d5

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ filelock>=3.9.0
99
flask>=2.2.2
1010
flask-cors>=4.0.0
1111
glymur>=0.12.7, < 0.14 # 0.14 is not compatible with python3.9
12+
huggingface_hub # do we need to pin it to 0.33.3?
1213
imagecodecs>=2022.9.26
1314
joblib>=1.1.1
1415
jupyterlab>=3.5.2
@@ -37,4 +38,3 @@ tqdm>=4.64.1
3738
umap-learn>=0.5.3
3839
wsidicom>=0.18.0
3940
zarr>=2.13.3, <3.0.0
40-
huggingface_hub # do we need to pin it to 0.33.3?

tiatoolbox/models/architecture/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
from typing import TYPE_CHECKING
88

99
import torch
10+
from huggingface_hub import hf_hub_download
1011

1112
from tiatoolbox import rcParam
1213
from tiatoolbox.models.dataset.classification import predefined_preproc_func
1314

14-
from huggingface_hub import hf_hub_download
15-
1615
if TYPE_CHECKING: # pragma: no cover
1716
from tiatoolbox.models.models_abc import IOConfigABC
1817

@@ -60,7 +59,7 @@ def fetch_pretrained_weights(
6059

6160
return hf_hub_download(
6261
repo_id="TIACentre/TIAToolbox_pretrained_weights",
63-
filename=file_name,
62+
filename=file_name,
6463
cache_dir=cache_dir,
6564
)
6665

tiatoolbox/models/architecture/vanilla.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def _get_architecture(
8787
return model.features
8888
if "alexnet" in arch_name:
8989
return model.features
90-
9190

9291
return model.features
9392

0 commit comments

Comments
 (0)