Always use compressor
This commit is contained in:
parent
6ca2ad6833
commit
b17ce408ff
|
@ -71,8 +71,6 @@ export default function Home() {
|
||||||
const [nowPlayingResult, setNowPlayingResult] =
|
const [nowPlayingResult, setNowPlayingResult] =
|
||||||
useState<InferenceResult>(null);
|
useState<InferenceResult>(null);
|
||||||
|
|
||||||
const [useCompressor, setUseCompressor] = useState(false);
|
|
||||||
|
|
||||||
// Set the initial seed from the URL if available
|
// Set the initial seed from the URL if available
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -117,10 +115,6 @@ export default function Home() {
|
||||||
if (router.query.seedImageId) {
|
if (router.query.seedImageId) {
|
||||||
setSeedImageId(router.query.seedImageId as string);
|
setSeedImageId(router.query.seedImageId as string);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (router.query.useCompressor) {
|
|
||||||
setUseCompressor(router.query.useCompressor == "true");
|
|
||||||
}
|
|
||||||
}, [router.isReady, router.query]);
|
}, [router.isReady, router.query]);
|
||||||
|
|
||||||
// Set the app state based on the prompt inputs array
|
// Set the app state based on the prompt inputs array
|
||||||
|
@ -352,7 +346,7 @@ export default function Home() {
|
||||||
inferenceResults={inferenceResults}
|
inferenceResults={inferenceResults}
|
||||||
nowPlayingCallback={nowPlayingCallback}
|
nowPlayingCallback={nowPlayingCallback}
|
||||||
playerIsBehindCallback={playerIsBehindCallback}
|
playerIsBehindCallback={playerIsBehindCallback}
|
||||||
useCompressor={useCompressor}
|
useCompressor={true}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<PromptPanel
|
<PromptPanel
|
||||||
|
|
Loading…
Reference in New Issue