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" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title> <title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="/assets/favicon.0d253ced.ico" /> <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"> <link rel="stylesheet" href="/assets/index.60ca0ee5.css">
</head> </head>

View File

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

View File

@ -1,17 +1,23 @@
import React from 'react'; 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 IAINumberInput from '../../../../common/components/IAINumberInput';
import { setThreshold } from '../../optionsSlice'; import { setThreshold } from '../../optionsSlice';
export default function Threshold() { export default function Threshold() {
const dispatch = useAppDispatch(); 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)); const handleChangeThreshold = (v: number) => dispatch(setThreshold(v));
return ( return (
<IAINumberInput <IAINumberInput
label='Threshold' label="Threshold"
min={0} min={0}
max={1000} max={1000}
step={0.1} step={0.1}