Skip to content

Commit 3854f65

Browse files
authored
Update AnemoI Snippet (#1558)
Due to recent changes the snippet had broken. Apologies for the double PR, my other one was merged lightning fast
1 parent 5cef246 commit 3854f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,9 +1797,9 @@ wav = model.generate(descriptions) # generates 3 samples.`,
17971797
];
17981798
export const anemoi = (model: ModelData): string[] => [
17991799
`from anemoi.inference.runners.default import DefaultRunner
1800-
from anemoi.inference.config import Configuration
1800+
from anemoi.inference.config.run import RunConfiguration
18011801
# Create Configuration
1802-
config = Configuration(checkpoint = {"huggingface":{"repo_id":"${model.id}"}})
1802+
config = RunConfiguration(checkpoint = {"huggingface":"${model.id}"})
18031803
# Load Runner
18041804
runner = DefaultRunner(config)`,
18051805
];

0 commit comments

Comments
 (0)