Skip to content

The only downloader you need. 下载器的集大成者。

fix(HuggingFace): 多文件下载放入任务同名文件夹,修复完成后提示文件不存在

XiaoYouChR15a111143e8a
diff --git a/features/huggingface_pack/task.py b/features/huggingface_pack/task.py
index a57d6658..86d52d9d 100644
--- a/features/huggingface_pack/task.py
+++ b/features/huggingface_pack/task.py
@@ -23,7 +23,7 @@ class HuggingFaceStep(HttpTaskStep):
if self.fileIndex >= 0 and self.task.files:
for file in self.task.files:
if file.index == self.fileIndex:
- return str(self.task.outputFolder / file.relativePath)
+ return str(self.task.outputFolder / self.task.name / file.relativePath)
return super().outputPath
def deleteFiles(self) -> None: