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 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

View File

@ -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: "" },