Seed image is a string not an int

This commit is contained in:
Hayk Martiros 2022-11-25 22:48:30 -08:00
parent c70c079411
commit 80b7991624
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ export default function Home() {
const [denoising, setDenoising] = useState(0.75);
const [guidance, setGuidance] = useState(7.0);
const [numInferenceSteps, setNumInferenceSteps] = useState(50);
const [seedImageId, setSeedImageId] = useState(0);
const [seedImageId, setSeedImageId] = useState("og_beat");
const [maskImageId, setMaskImageId] = useState(null);
const [alphaVelocity, setAlphaVelocity] = useState(0.25);
@ -82,7 +82,7 @@ export default function Home() {
}
if (router.query.seedImageId) {
setSeedImageId(parseInt(router.query.seedImageId as string));
setSeedImageId(router.query.seedImageId as string);
}
if (router.query.maskImageId) {