only render convert button if ckpt model

This commit is contained in:
Mary Hipp 2024-03-08 14:12:10 -05:00 committed by Kent Keirsey
parent a42812d78d
commit cab5b64f0b

View File

@ -66,6 +66,10 @@ export const ModelConvertButton = (props: ModelConvertProps) => {
});
}, [data, isLoading, dispatch, t, convertModel]);
if (data?.format !== 'checkpoint') {
return;
}
return (
<>
<Button