Skip to content

Commit 25c98d2

Browse files
Apply suggestions from code review
Co-authored-by: Lucain <[email protected]>
1 parent bd3a038 commit 25c98d2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,13 +1008,10 @@ whisperkit-cli transcribe --audio-path /path/to/audio.mp3
10081008
whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path /path/to/audio.mp3 --verbose`,
10091009
];
10101010

1011-
export const threedtopia_xl = (): string[] => [
1012-
`# Install from https://github.com/3DTopia/3DTopia-XL
1013-
from threedtopia_xl.models import threedtopia_xl
1011+
export const threedtopia_xl = (model: ModelData): string[] => [
1012+
`from threedtopia_xl.models import threedtopia_xl
1013+
10141014
model = threedtopia_xl.from_pretrained("${model.id}")
1015-
img = 'PATH_TO_Image.png'
1016-
model.generate(cond=img)
1017-
# refer to https://github.com/3DTopia/3DTopia-XL?tab=readme-ov-file#inference for inference
1018-
# and https://github.com/3DTopia/3DTopia-XL/blob/main/app.py regarding usage`,
1015+
model.generate(cond="path/to/image.png")
10191016
];
10201017
//#endregion

packages/tasks/src/model-libraries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
705705
repoName: "3DTopia-XL",
706706
repoUrl: "https://github.com/3DTopia/3DTopia-XL",
707707
filter: false,
708-
countDownloads: `path_extension:"pt"`,
708+
countDownloads: `path:"model_vae_fp16.pt"`,
709709
snippets: snippets.threedtopia_xl,
710710
},
711711
} satisfies Record<string, LibraryUiElement>;

0 commit comments

Comments
 (0)