Skip to content

Commit 7dd5cb3

Browse files
Update model-libraries-snippets.ts
1 parent a3fd39f commit 7dd5cb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,10 @@ whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-pat
10101010

10111011
export const threedtopia_xl = (): string[] => [
10121012
`# Install from https://github.com/3DTopia/3DTopia-XL
1013-
1013+
from threedtopia_xl.models import threedtopia_xl
1014+
model = threedtopia_xl.from_pretrained("${model.id}")
1015+
img = 'PATH_TO_Image.png'
1016+
model.generate(cond=img)
10141017
# refer to https://github.com/3DTopia/3DTopia-XL?tab=readme-ov-file#inference for inference
10151018
# and https://github.com/3DTopia/3DTopia-XL/blob/main/app.py regarding usage`,
10161019
];

0 commit comments

Comments
 (0)