disable WebUI Option of WebGPU Mode (webgpu not supported yet)

This commit is contained in:
josc146 2023-11-08 23:05:59 +08:00
parent d249a4c29a
commit 0594290b92

View File

@ -442,15 +442,16 @@ const Configs: FC = observer(() => {
</div>
<div className="flex flex-row-reverse sm:fixed bottom-2 right-2">
<div className="flex gap-2">
<Checkbox className="select-none"
size="large" label={t('Enable WebUI')}
checked={selectedConfig.enableWebUI}
onChange={(_, data) => {
setSelectedConfig({
...selectedConfig,
enableWebUI: data.checked as boolean
});
}} />
{selectedConfig.modelParameters.device !== 'WebGPU'
&& <Checkbox className="select-none"
size="large" label={t('Enable WebUI')}
checked={selectedConfig.enableWebUI}
onChange={(_, data) => {
setSelectedConfig({
...selectedConfig,
enableWebUI: data.checked as boolean
});
}} />}
<RunButton onClickRun={onClickSave} />
</div>
</div>