Skip to content

Commit ecdac33

Browse files
authored
🐛 Fix timm code sample (#322)
1 parent 03afa2a commit ecdac33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/src/lib/interfaces/Libraries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const tensorflowtts = (model: ModelData) => {
163163
const timm = (model: ModelData) =>
164164
`import timm
165165
166-
model = timm.create_model("${model.modelId}", pretrained=True)`;
166+
model = timm.create_model("hf_hub:${model.modelId}", pretrained=True)`;
167167

168168
const sklearn = (model: ModelData) =>
169169
`from huggingface_hub import hf_hub_download

0 commit comments

Comments
 (0)