Skip to content

Commit a0bd3e4

Browse files
dxqbclaude
andcommitted
Sync CtkConceptWindowView and ConceptWindowController with Base copy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 408e7e2 commit a0bd3e4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

modules/ui/ConceptWindowController.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,8 @@ def get_concept_path(path: str) -> str | None:
575575

576576
def __download_dataset(self):
577577
try:
578-
huggingface_hub.login(token=self.train_config.secrets.huggingface_token, new_session=False)
578+
if self.train_config.secrets.huggingface_token != "":
579+
huggingface_hub.login(token=self.train_config.secrets.huggingface_token)
579580
huggingface_hub.snapshot_download(repo_id=self.concept.path, repo_type="dataset")
580581
except Exception:
581582
traceback.print_exc()

modules/ui/CtkConceptWindowView.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,8 @@ def get_concept_path(path: str) -> str | None:
575575

576576
def __download_dataset(self):
577577
try:
578-
huggingface_hub.login(token=self.train_config.secrets.huggingface_token, new_session=False)
578+
if self.train_config.secrets.huggingface_token != "":
579+
huggingface_hub.login(token=self.train_config.secrets.huggingface_token)
579580
huggingface_hub.snapshot_download(repo_id=self.concept.path, repo_type="dataset")
580581
except Exception:
581582
traceback.print_exc()

0 commit comments

Comments
 (0)