Remove overly broad .py check from dataset error normalization
This commit is contained in:
parent
a0f4566173
commit
43bf599b33
1 changed files with 1 additions and 2 deletions
|
|
@ -41,8 +41,7 @@ function normalizeDatasetSplitsError(message: string): string {
|
|||
// datasets-server returns technical script/runtime details for legacy datasets.
|
||||
if (
|
||||
normalized.includes("dataset scripts are no longer supported") ||
|
||||
normalized.includes("runs arbitrary python code") ||
|
||||
normalized.includes(".py")
|
||||
normalized.includes("runs arbitrary python code")
|
||||
) {
|
||||
return "We can’t load subset/split options for this Hub dataset because it relies on a legacy custom script.";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue