CLOSER
Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
});
|
| 21 |
|
| 22 |
// Prompt templates
|
| 23 |
-
const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this description of a person/photo: "${caption}"
|
| 24 |
|
| 25 |
Create a unique monster concept inspired by the key visual elements. Include:
|
| 26 |
- Physical appearance and distinguishing features
|
|
@@ -28,12 +28,16 @@ Create a unique monster concept inspired by the key visual elements. Include:
|
|
| 28 |
- Personality traits
|
| 29 |
- Habitat or origin
|
| 30 |
|
| 31 |
-
Be creative and detailed. The monster should be fantastical but somehow connected to the original image's essence
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
"${concept}"
|
| 35 |
|
| 36 |
-
Create a vivid, artistic prompt focusing on visual details, art style, lighting, and atmosphere. Format it as a single paragraph optimized for image generation
|
|
|
|
|
|
|
| 37 |
|
| 38 |
async function handleImageSelected(file: File) {
|
| 39 |
if (!joyCaptionClient || !rwkvClient || !fluxClient) {
|
|
|
|
| 20 |
});
|
| 21 |
|
| 22 |
// Prompt templates
|
| 23 |
+
const MONSTER_CONCEPT_PROMPT = (caption: string) => `User: Based on this description of a person/photo: "${caption}"
|
| 24 |
|
| 25 |
Create a unique monster concept inspired by the key visual elements. Include:
|
| 26 |
- Physical appearance and distinguishing features
|
|
|
|
| 28 |
- Personality traits
|
| 29 |
- Habitat or origin
|
| 30 |
|
| 31 |
+
Be creative and detailed. The monster should be fantastical but somehow connected to the original image's essence.
|
| 32 |
|
| 33 |
+
Assistant:`;
|
| 34 |
+
|
| 35 |
+
const IMAGE_GENERATION_PROMPT = (concept: string) => `User: Convert this monster concept into a detailed image generation prompt:
|
| 36 |
"${concept}"
|
| 37 |
|
| 38 |
+
Create a vivid, artistic prompt focusing on visual details, art style, lighting, and atmosphere. Format it as a single paragraph optimized for image generation.
|
| 39 |
+
|
| 40 |
+
Assistant:`;
|
| 41 |
|
| 42 |
async function handleImageSelected(file: File) {
|
| 43 |
if (!joyCaptionClient || !rwkvClient || !fluxClient) {
|