Eshieh2 commited on
Commit
093e825
·
1 Parent(s): 91df06d

disable token if not found?

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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', True)
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