Spaces:
Runtime error
Runtime error
fix: remove unnecessary token environment variable
Browse files
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"
|
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()
|