Fraser commited on
Commit
9090bd9
·
1 Parent(s): 4fcb3d1

try more strong resemblence

Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte CHANGED
@@ -24,17 +24,20 @@
24
  // Prompt templates
25
  const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this image caption: "${caption}"
26
 
27
- Come up with a monster idea (in the vein of Pokémon) that incorporates properties of the pictured object.
28
- Assess how unique the pictured object is. If the object is common then it should result in a weak monster, if the object is unique then it should result in a powerful monster.
29
 
30
- Create a creature that reflects the essence, materials, function, and characteristics of the object. Consider:
31
- - What the object is made of (metal, wood, fabric, etc.)
32
- - How it functions or is used
33
- - Its physical properties (hard, soft, hot, cold, etc.)
34
- - Its cultural or symbolic meaning
35
- - Its shape, texture, and visual characteristics
36
 
37
- The monster should have unique strengths and weaknesses based on these properties.`;
 
 
 
 
 
 
38
 
39
  const IMAGE_GENERATION_PROMPT = (concept: string) => `Convert this monster concept into a clear and succinct description of its appearance:
40
  "${concept}"
@@ -191,7 +194,7 @@ Write your response within \`\`\`json\`\`\``;
191
  }
192
 
193
  const conceptPrompt = MONSTER_CONCEPT_PROMPT(state.imageCaption);
194
- const systemPrompt = "You are a creative monster designer. Create unique and interesting monsters based on real-world objects, considering their properties and characteristics.";
195
 
196
  console.log('Generating monster concept with prompt:', conceptPrompt);
197
 
 
24
  // Prompt templates
25
  const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this image caption: "${caption}"
26
 
27
+ Create a Pokémon-style monster that IS the object in the image brought to life. The monster should physically resemble and be based on the actual object's appearance, not just its conceptual properties.
 
28
 
29
+ IMPORTANT: The monster must look like the object itself transformed into a creature. For example:
30
+ - If it's a blue ice cream truck, the monster should BE a living ice cream truck with wheels, windows, and truck features
31
+ - If it's a shoe, the monster should BE a living shoe with laces, sole, etc.
32
+ - If it's a lamp, the monster should BE a living lamp with a shade, bulb, base, etc.
 
 
33
 
34
+ Assess rarity: Common everyday objects = weak monsters (low stats). Unique/rare objects = powerful monsters (high stats).
35
+
36
+ Include:
37
+ - How the object's physical form translates into the monster's body
38
+ - How its original function becomes abilities
39
+ - Personality based on the object's purpose
40
+ - Name that references what the object is`;
41
 
42
  const IMAGE_GENERATION_PROMPT = (concept: string) => `Convert this monster concept into a clear and succinct description of its appearance:
43
  "${concept}"
 
194
  }
195
 
196
  const conceptPrompt = MONSTER_CONCEPT_PROMPT(state.imageCaption);
197
+ const systemPrompt = "You are a Pokémon-style monster designer. When creating monsters, they must physically resemble the actual object - the monster IS the object come to life, not just inspired by it. A car becomes a living car monster, a book becomes a living book monster, etc. The object's physical form should be clearly recognizable in the monster design.";
198
 
199
  console.log('Generating monster concept with prompt:', conceptPrompt);
200