better gen
Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
@@ -24,9 +24,8 @@
|
|
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
|
28 |
-
Assess how unique the pictured object is. If the
|
29 |
-
Meanwhile if the image is very unique the monster should be unique and powerful.
|
30 |
|
31 |
Create a creature that reflects the essence, materials, function, and characteristics of the object. Consider:
|
32 |
- What the object is made of (metal, wood, fabric, etc.)
|
@@ -35,13 +34,7 @@ Create a creature that reflects the essence, materials, function, and characteri
|
|
35 |
- Its cultural or symbolic meaning
|
36 |
- Its shape, texture, and visual characteristics
|
37 |
|
38 |
-
The monster should have unique strengths and weaknesses based on these properties
|
39 |
-
|
40 |
-
Include:
|
41 |
-
- Physical appearance and distinguishing features
|
42 |
-
- Special abilities or powers
|
43 |
-
- Personality traits
|
44 |
-
- Habitat or origin`;
|
45 |
|
46 |
const IMAGE_GENERATION_PROMPT = (concept: string) => `Convert this monster concept into a clear and succinct description of its appearance:
|
47 |
"${concept}"
|
@@ -214,7 +207,7 @@ Write your response within \`\`\`json\`\`\``;
|
|
214 |
1.0 // repetition_penalty
|
215 |
]);
|
216 |
|
217 |
-
console.log('Zephyr output:', output);
|
218 |
let conceptText = output.data[0];
|
219 |
|
220 |
state.monsterConcept = conceptText;
|
|
|
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.)
|
|
|
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}"
|
|
|
207 |
1.0 // repetition_penalty
|
208 |
]);
|
209 |
|
210 |
+
console.log('Zephyr output:', output.data[0]);
|
211 |
let conceptText = output.data[0];
|
212 |
|
213 |
state.monsterConcept = conceptText;
|