jbilcke-hf HF staff commited on
Commit
cea3188
β€’
1 Parent(s): e5255da

change to the prompt

Browse files
Files changed (2) hide show
  1. src/app/main.tsx +2 -2
  2. src/app/queries/getStory.ts +2 -2
src/app/main.tsx CHANGED
@@ -72,8 +72,8 @@ export default function Main() {
72
  }
73
 
74
  // new experimental prompt: let's drop the user prompt!
75
- const lightPanelPromptPrefix = preset.imagePrompt("").join(", ")
76
- const degradedPanelPromptPrefix = preset.imagePrompt(limitedPrompt).join(", ")
77
 
78
  const newPanels: string[] = []
79
  const newCaptions: string[] = []
 
72
  }
73
 
74
  // new experimental prompt: let's drop the user prompt!
75
+ const lightPanelPromptPrefix = preset.imagePrompt("").filter(x => x).join(", ")
76
+ const degradedPanelPromptPrefix = preset.imagePrompt(limitedPrompt).filter(x => x).join(", ")
77
 
78
  const newPanels: string[] = []
79
  const newCaptions: string[] = []
src/app/queries/getStory.ts CHANGED
@@ -26,8 +26,8 @@ export const getStory = async ({
26
  {
27
  role: "system",
28
  content: [
29
- `You are a comic book author specialized in ${preset.llmPrompt}`,
30
- `Please write detailed drawing instructions and a one-sentence short caption for the ${nbTotalPanels} panels of a new silent comic book page.`,
31
  `Give your response as a VALID JSON array like this: \`Array<{ panel: number; instructions: string; caption: string}>\`.`,
32
  // `Give your response as Markdown bullet points.`,
33
  `Be brief in your ${nbTotalPanels} instructions and captions, don't add your own comments. Be straight to the point, and never reply things like "Sure, I can.." etc. Reply using valid JSON.`
 
26
  {
27
  role: "system",
28
  content: [
29
+ `You are a writer specialized in ${preset.llmPrompt}`,
30
+ `Please write detailed drawing instructions and a one-sentence short caption for the ${nbTotalPanels} panels of a new silent story. Please make sure each of the ${nbTotalPanels} panels include info about character gender, age, origin, clothes, colors, location, lights, etc.`,
31
  `Give your response as a VALID JSON array like this: \`Array<{ panel: number; instructions: string; caption: string}>\`.`,
32
  // `Give your response as Markdown bullet points.`,
33
  `Be brief in your ${nbTotalPanels} instructions and captions, don't add your own comments. Be straight to the point, and never reply things like "Sure, I can.." etc. Reply using valid JSON.`