Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitextor/bicleaner-ai.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbicleaner_ai/bicleaner_ai_classifier.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bicleaner_ai/bicleaner_ai_classifier.py b/bicleaner_ai/bicleaner_ai_classifier.py
index e13e9c9..3311613 100755
--- a/bicleaner_ai/bicleaner_ai_classifier.py
+++ b/bicleaner_ai/bicleaner_ai_classifier.py
@@ -50,7 +50,7 @@ def initialization():
args.processes = max(1, cpu_count()-1)
# Try to download the model if not a valid path
- if not args.offline or is_dir:
+ if not args.offline:
from huggingface_hub import snapshot_download, model_info
from huggingface_hub.utils import RepositoryNotFoundError
from requests.exceptions import HTTPError