yuna0x0 commited on
Commit
3b6e0c9
1 Parent(s): 72b39a2

fix: remove unnecessary token environment variable

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -25,14 +25,13 @@ import torch
25
 
26
  import anime_face_detector
27
 
28
- TOKEN = os.environ["TOKEN"]
29
 
30
  def load_sample_image_paths() -> list[pathlib.Path]:
31
  image_dir = pathlib.Path("images")
32
  if not image_dir.exists():
33
  dataset_repo = "hysts/sample-images-TADNE"
34
  path = huggingface_hub.hf_hub_download(
35
- dataset_repo, "images.tar.gz", repo_type="dataset", use_auth_token=TOKEN
36
  )
37
  with tarfile.open(path) as f:
38
  f.extractall()
 
25
 
26
  import anime_face_detector
27
 
 
28
 
29
  def load_sample_image_paths() -> list[pathlib.Path]:
30
  image_dir = pathlib.Path("images")
31
  if not image_dir.exists():
32
  dataset_repo = "hysts/sample-images-TADNE"
33
  path = huggingface_hub.hf_hub_download(
34
+ dataset_repo, "images.tar.gz", repo_type="dataset"
35
  )
36
  with tarfile.open(path) as f:
37
  f.extractall()