You've already forked DataMate
Fix ratio (#162)
* fix: fixed the issue where an error would be reported when only setting the proportioning quantity when creating a proportioning task * fix: prevent adding the same file multiple times * fix: implement a more flexible matching strategy, allowing only the tag name to be configured for matching
This commit is contained in:
@@ -46,7 +46,7 @@ class DatasetFileTag(BaseModel):
|
||||
tags.append(tag_values)
|
||||
# 如果 from_name 不为空,添加前缀
|
||||
if self.from_name:
|
||||
tags = [f"{self.from_name}@{tag}" for tag in tags]
|
||||
tags = [{"label": self.from_name, "value": tag} for tag in tags]
|
||||
return tags
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user