SmilingWolf commited on
Commit
8a0e72f
1 Parent(s): 213351b

Remove HF_TOKEN thingy.

Browse files

Not necessary since all models and weights are public already.

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,7 +23,6 @@ Image similarity-based retrieval tool using:
23
  Also, check out [SmilingWolf/danbooru2022_embeddings_playground](https://huggingface.co/spaces/SmilingWolf/danbooru2022_embeddings_playground) for a similar space with experimental support for text input combined with image input.
24
  """
25
 
26
- HF_TOKEN = os.environ["HF_TOKEN"]
27
  CONV_MODEL_REPO = "SmilingWolf/wd-v1-4-convnext-tagger-v2"
28
  CONV_MODEL_REVISION = "v2.0"
29
  CONV_FEXT_LAYER = "predictions_norm"
@@ -48,7 +47,9 @@ def download_model(model_repo, model_revision):
48
  model_file_paths.append(
49
  Path(
50
  hf_hub_download(
51
- model_repo, revision=model_revision, use_auth_token=HF_TOKEN, **elem
 
 
52
  )
53
  )
54
  )
 
23
  Also, check out [SmilingWolf/danbooru2022_embeddings_playground](https://huggingface.co/spaces/SmilingWolf/danbooru2022_embeddings_playground) for a similar space with experimental support for text input combined with image input.
24
  """
25
 
 
26
  CONV_MODEL_REPO = "SmilingWolf/wd-v1-4-convnext-tagger-v2"
27
  CONV_MODEL_REVISION = "v2.0"
28
  CONV_FEXT_LAYER = "predictions_norm"
 
47
  model_file_paths.append(
48
  Path(
49
  hf_hub_download(
50
+ model_repo,
51
+ revision=model_revision,
52
+ **elem,
53
  )
54
  )
55
  )