allow safetensors converter on macOS

This commit is contained in:
josc146 2023-11-21 22:32:25 +08:00
parent 3a449e7b46
commit f2d0dda2ff

View File

@ -273,10 +273,7 @@ const Configs: FC = observer(() => {
<ToolTipButton text={t('Convert To Safe Tensors Format')}
desc=""
onClick={async () => {
if (commonStore.platform === 'darwin') {
toast(t('MacOS is not yet supported for performing this operation, please do it manually.') + ' (backend-python/convert_safetensors.py)', { type: 'info' });
return;
} else if (commonStore.platform === 'linux') {
if (commonStore.platform === 'linux') {
toast(t('Linux is not yet supported for performing this operation, please do it manually.') + ' (backend-python/convert_safetensors.py)', { type: 'info' });
return;
}