From f3d395fc463d9bd478f5eba12737c69ddfeb5b18 Mon Sep 17 00:00:00 2001 From: Seth Forsgren Date: Sun, 4 Dec 2022 19:35:32 -0800 Subject: [PATCH] Share and default improvements --- components/Share.tsx | 10 +++++----- pages/index.tsx | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/Share.tsx b/components/Share.tsx index 92287a9..54168ac 100644 --- a/components/Share.tsx +++ b/components/Share.tsx @@ -48,7 +48,7 @@ export default function Share({ // function to generate a link to a the moment in the song based on the played clips, input variable is how many seconds ago function generateLink(secondsAgo: number) { - //TODO: Seth, handle start case, and seconds into past case + //TODO: Seth, and seconds into past case var prompt var seed @@ -65,13 +65,13 @@ export default function Share({ if (!nowPlayingResult) { return window.location.href; } - prompt = nowPlayingResult.input.start.prompt - seed = nowPlayingResult.input.start.seed - denoising = nowPlayingResult.input.start.denoising + prompt = nowPlayingResult.input.end.prompt + seed = nowPlayingResult.input.end.seed + denoising = nowPlayingResult.input.end.denoising maskImageId = nowPlayingResult.input.mask_image_id // TODO, selectively add these based on whether we give user option to change them - + // seedImageId = nowPlayingResult.input.seed_image_id // guidance = nowPlayingResult.input.guidance // numInferenceSteps = nowPlayingResult.input.num_inference_steps diff --git a/pages/index.tsx b/pages/index.tsx index 69c230c..46a0b95 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -19,9 +19,9 @@ import { } from "../types"; const defaultPromptInputs = [ - { prompt: "A jazz pianist playing a classical concerto" }, - { prompt: "Country singer and a techno DJ" }, - { prompt: "A typewriter in the style of K-Pop" }, + { prompt: "A jazz pianist playing a concerto" }, + { prompt: "Techno DJ and a Country Singer" }, + { prompt: "Classical italian tenor operatic pop" }, { prompt: "lo-fi beat for the holidays" }, { prompt: "" }, { prompt: "" },