Skip to content

Commit 21b89ea

Browse files
authored
remove extra comma in snippet (#1701)
Fix #1699
1 parent 166cd60 commit 21b89ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ export const transformers = (model: ModelData): string[] => {
15231523
autoSnippet.push(
15241524
"# Load model directly",
15251525
`from transformers import ${info.auto_model}`,
1526-
`model = ${info.auto_model}.from_pretrained("${model.id}"` + remote_code_snippet + ', torch_dtype="auto"),'
1526+
`model = ${info.auto_model}.from_pretrained("${model.id}"` + remote_code_snippet + ', torch_dtype="auto")'
15271527
);
15281528
}
15291529

0 commit comments

Comments
 (0)