jbilcke-hf HF staff commited on
Commit
ee1b7bf
1 Parent(s): d303a22

anchoring story chunks into the larger length

Browse files
src/app/queries/predictNextPanels.ts CHANGED
@@ -43,10 +43,10 @@ export const predictNextPanels = async ({
43
  role: "system",
44
  content: [
45
  `You are a writer specialized in ${preset.llmPrompt}`,
46
- `Please write detailed drawing instructions and short (2-3 sentences long) speech captions for the ${firstNextOrLast} ${nbPanelsToGenerate} panels (out of ${nbTotalPanels}) of a new story, but keep it open-ended (it will be continued and expanded later). Please make sure each of those ${nbPanelsToGenerate} panels include info about character gender, age, origin, clothes, colors, location, lights, etc.`,
47
  `Give your response as a VALID JSON array like this: \`Array<{ panel: number; instructions: string; caption: string; }>\`.`,
48
  // `Give your response as Markdown bullet points.`,
49
- `Be brief in your ${nbPanelsToGenerate} instructions and narrative captions, don't add your own comments. The captions must be captivating, smart, entertaining. Be straight to the point, and never reply things like "Sure, I can.." etc. Reply using valid JSON!! Important: Write valid JSON!`
50
  ].filter(item => item).join("\n")
51
  },
52
  {
 
43
  role: "system",
44
  content: [
45
  `You are a writer specialized in ${preset.llmPrompt}`,
46
+ `Please write detailed drawing instructions and short (2-3 sentences long) speech captions for the ${firstNextOrLast} ${nbPanelsToGenerate} panels (out of ${nbTotalPanels} in total) of a new story, but keep it open-ended (it will be continued and expanded later). Please make sure each of those ${nbPanelsToGenerate} panels include info about character gender, age, origin, clothes, colors, location, lights, etc. Only generate those ${nbPanelsToGenerate} panels, but take into account the fact the panels are part of a longer story (${nbTotalPanels} panels long).`,
47
  `Give your response as a VALID JSON array like this: \`Array<{ panel: number; instructions: string; caption: string; }>\`.`,
48
  // `Give your response as Markdown bullet points.`,
49
+ `Be brief in the instructions and narrative captions of those ${nbPanelsToGenerate} panels, don't add your own comments. The captions must be captivating, smart, entertaining. Be straight to the point, and never reply things like "Sure, I can.." etc. Reply using valid JSON!! Important: Write valid JSON!`
50
  ].filter(item => item).join("\n")
51
  },
52
  {