Skip to content

Commit

Permalink
only render convert button if ckpt model
Browse files Browse the repository at this point in the history
  • Loading branch information
Mary Hipp authored and hipsterusername committed Mar 8, 2024
1 parent a42812d commit cab5b64
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export const ModelConvertButton = (props: ModelConvertProps) => {
});
}, [data, isLoading, dispatch, t, convertModel]);

if (data?.format !== 'checkpoint') {
return;
}

return (
<>
<Button
Expand Down

0 comments on commit cab5b64

Please sign in to comment.