just mon desc
Browse files
src/lib/components/PicletGenerator/PicletGenerator.svelte
CHANGED
@@ -337,7 +337,7 @@ Format your response exactly as follows:
|
|
337 |
# Monster Name
|
338 |
{Creative name that hints at the original object}
|
339 |
|
340 |
-
|
341 |
{Detailed physical description showing how the object becomes a creature. Ensure the creature uses all the unique attributes of the object. Include colors, shapes, materials, eyes, limbs, mouth, and distinctive features. This section should be comprehensive as it will be used for both stats generation and image creation.}
|
342 |
\`\`\``;
|
343 |
|
@@ -390,8 +390,8 @@ Format your response exactly as follows:
|
|
390 |
throw new Error(`HunyuanTurbos service not available or no concept/caption available for prompt generation`);
|
391 |
}
|
392 |
|
393 |
-
// Extract the Monster
|
394 |
-
const visualDescMatch = workflowState.picletConcept.match(
|
395 |
|
396 |
if (visualDescMatch && visualDescMatch[1]) {
|
397 |
workflowState.imagePrompt = visualDescMatch[1].trim();
|
|
|
337 |
# Monster Name
|
338 |
{Creative name that hints at the original object}
|
339 |
|
340 |
+
# Monster Description
|
341 |
{Detailed physical description showing how the object becomes a creature. Ensure the creature uses all the unique attributes of the object. Include colors, shapes, materials, eyes, limbs, mouth, and distinctive features. This section should be comprehensive as it will be used for both stats generation and image creation.}
|
342 |
\`\`\``;
|
343 |
|
|
|
390 |
throw new Error(`HunyuanTurbos service not available or no concept/caption available for prompt generation`);
|
391 |
}
|
392 |
|
393 |
+
// Extract the Monster Description from the structured concept
|
394 |
+
const visualDescMatch = workflowState.picletConcept.match(/# Monster Description\s*\n([\s\S]*?)(?=#|$)/);
|
395 |
|
396 |
if (visualDescMatch && visualDescMatch[1]) {
|
397 |
workflowState.imagePrompt = visualDescMatch[1].trim();
|