Share and default improvements

This commit is contained in:
Seth Forsgren 2022-12-04 19:35:32 -08:00
parent 9998c65951
commit f3d395fc46
2 changed files with 8 additions and 8 deletions

View File

@ -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 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) { function generateLink(secondsAgo: number) {
//TODO: Seth, handle start case, and seconds into past case //TODO: Seth, and seconds into past case
var prompt var prompt
var seed var seed
@ -65,9 +65,9 @@ export default function Share({
if (!nowPlayingResult) { if (!nowPlayingResult) {
return window.location.href; return window.location.href;
} }
prompt = nowPlayingResult.input.start.prompt prompt = nowPlayingResult.input.end.prompt
seed = nowPlayingResult.input.start.seed seed = nowPlayingResult.input.end.seed
denoising = nowPlayingResult.input.start.denoising denoising = nowPlayingResult.input.end.denoising
maskImageId = nowPlayingResult.input.mask_image_id maskImageId = nowPlayingResult.input.mask_image_id
// TODO, selectively add these based on whether we give user option to change them // TODO, selectively add these based on whether we give user option to change them

View File

@ -19,9 +19,9 @@ import {
} from "../types"; } from "../types";
const defaultPromptInputs = [ const defaultPromptInputs = [
{ prompt: "A jazz pianist playing a classical concerto" }, { prompt: "A jazz pianist playing a concerto" },
{ prompt: "Country singer and a techno DJ" }, { prompt: "Techno DJ and a Country Singer" },
{ prompt: "A typewriter in the style of K-Pop" }, { prompt: "Classical italian tenor operatic pop" },
{ prompt: "lo-fi beat for the holidays" }, { prompt: "lo-fi beat for the holidays" },
{ prompt: "" }, { prompt: "" },
{ prompt: "" }, { prompt: "" },