Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ DESCRIPTION = """
|
|
13 |
Demo for the WaifuDiffusion tagger models
|
14 |
"""
|
15 |
|
16 |
-
|
17 |
|
18 |
# Dataset v3 series of models:
|
19 |
SWINV2_MODEL_DSV3_REPO = "SmilingWolf/wd-swinv2-tagger-v3"
|
@@ -56,8 +56,8 @@ class Predictor:
|
|
56 |
self.last_loaded_repo = None
|
57 |
|
58 |
def download_model(self, model_repo):
|
59 |
-
csv_path = huggingface_hub.hf_hub_download(model_repo, LABEL_FILENAME, use_auth_token=
|
60 |
-
model_path = huggingface_hub.hf_hub_download(model_repo, MODEL_FILENAME, use_auth_token=
|
61 |
return csv_path, model_path
|
62 |
|
63 |
def load_model(self, model_repo):
|
@@ -144,6 +144,12 @@ def main():
|
|
144 |
"2024",
|
145 |
"2023",
|
146 |
"2025",
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
"head-mounted_display",
|
148 |
"2022",
|
149 |
"muscular_female",
|
|
|
13 |
Demo for the WaifuDiffusion tagger models
|
14 |
"""
|
15 |
|
16 |
+
HF_TOKEN1 = os.environ.get("HF_TOKEN1", "")
|
17 |
|
18 |
# Dataset v3 series of models:
|
19 |
SWINV2_MODEL_DSV3_REPO = "SmilingWolf/wd-swinv2-tagger-v3"
|
|
|
56 |
self.last_loaded_repo = None
|
57 |
|
58 |
def download_model(self, model_repo):
|
59 |
+
csv_path = huggingface_hub.hf_hub_download(model_repo, LABEL_FILENAME, use_auth_token=HF_TOKEN1)
|
60 |
+
model_path = huggingface_hub.hf_hub_download(model_repo, MODEL_FILENAME, use_auth_token=HF_TOKEN1)
|
61 |
return csv_path, model_path
|
62 |
|
63 |
def load_model(self, model_repo):
|
|
|
144 |
"2024",
|
145 |
"2023",
|
146 |
"2025",
|
147 |
+
"genderswap",
|
148 |
+
"genderswap_(otm)",
|
149 |
+
"genderswap_(otf)",
|
150 |
+
"genderswap_(mtf)",
|
151 |
+
"genderswap_(ftm)",
|
152 |
+
"respirator",
|
153 |
"head-mounted_display",
|
154 |
"2022",
|
155 |
"muscular_female",
|