mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix WebUI Not Working
This commit is contained in:
parent
440065f7f8
commit
6e1328d4c2
2
frontend/dist/index.html
vendored
2
frontend/dist/index.html
vendored
@ -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>
|
||||
|
||||
|
@ -16,8 +16,8 @@ const SeedOptions = () => {
|
||||
<Seed />
|
||||
<ShuffleSeed />
|
||||
</Flex>
|
||||
<Threshold />
|
||||
<Perlin />
|
||||
<Threshold />
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user