Spaces:
Sleeping
Sleeping
disable token if not found?
Browse files
app.py
CHANGED
@@ -8,9 +8,9 @@ from huggingface_hub import login
|
|
8 |
import os
|
9 |
import PIL
|
10 |
|
11 |
-
login()
|
12 |
|
13 |
-
read_key = os.environ.get('HF_TOKEN',
|
14 |
extractor_path = hf_hub_download(repo_id="crossprism/efficientnetv221k-M", filename="efficientnetV2M21kExtractor.mlmodel", use_auth_token = read_key)
|
15 |
classifier_path = hf_hub_download(repo_id="crossprism/tesla_sentry_dings", filename="tesla_sentry_door_ding.mlpackage/Data/com.apple.CoreML/tesla_door_dings.mlmodel", use_auth_token = read_key)
|
16 |
|
|
|
8 |
import os
|
9 |
import PIL
|
10 |
|
11 |
+
#login()
|
12 |
|
13 |
+
read_key = os.environ.get('HF_TOKEN', None)
|
14 |
extractor_path = hf_hub_download(repo_id="crossprism/efficientnetv221k-M", filename="efficientnetV2M21kExtractor.mlmodel", use_auth_token = read_key)
|
15 |
classifier_path = hf_hub_download(repo_id="crossprism/tesla_sentry_dings", filename="tesla_sentry_door_ding.mlpackage/Data/com.apple.CoreML/tesla_door_dings.mlmodel", use_auth_token = read_key)
|
16 |
|