Fix WebUI Not Working

This commit is contained in:
blessedcoolant 2022-10-07 08:00:29 +13:00
parent 440065f7f8
commit 6e1328d4c2
3 changed files with 17 additions and 11 deletions

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="/assets/favicon.0d253ced.ico" />
<script type="module" crossorigin src="/assets/index.a8cf9285.js"></script>
<script type="module" crossorigin src="/assets/index.94d0d9f3.js"></script>
<link rel="stylesheet" href="/assets/index.60ca0ee5.css">
</head>

View File

@ -16,8 +16,8 @@ const SeedOptions = () => {
<Seed />
<ShuffleSeed />
</Flex>
<Threshold />
<Perlin />
<Threshold />
</Flex>
);
};

View File

@ -1,23 +1,29 @@
import React from 'react';
import { RootState, useAppDispatch, useAppSelector } from '../../../../app/store';
import {
RootState,
useAppDispatch,
useAppSelector,
} from '../../../../app/store';
import IAINumberInput from '../../../../common/components/IAINumberInput';
import { setThreshold } from '../../optionsSlice';
export default function Threshold() {
const dispatch = useAppDispatch();
const threshold = useAppSelector((state: RootState) => state.options.threshold);
const threshold = useAppSelector(
(state: RootState) => state.options.threshold
);
const handleChangeThreshold = (v: number) => dispatch(setThreshold(v));
return (
<IAINumberInput
label='Threshold'
min={0}
max={1000}
step={0.1}
onChange={handleChangeThreshold}
value={threshold}
isInteger={false}
label="Threshold"
min={0}
max={1000}
step={0.1}
onChange={handleChangeThreshold}
value={threshold}
isInteger={false}
/>
);
}