fix args
Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
@@ -177,14 +177,14 @@ Focus on: colors, body shape, eyes, limbs, mouth, and key visual features. Omit
|
|
177 |
}
|
178 |
|
179 |
try {
|
180 |
-
const output = await joyCaptionClient.predict("/stream_chat",
|
181 |
-
state.userImage,
|
182 |
-
"
|
183 |
-
"very long"
|
184 |
-
[],
|
185 |
-
"",
|
186 |
-
MONSTER_GENERATION_PROMPT //
|
187 |
-
|
188 |
|
189 |
const [prompt, caption] = output.data;
|
190 |
// The caption now contains the full monster concept with lore, visual description, and rarity
|
|
|
177 |
}
|
178 |
|
179 |
try {
|
180 |
+
const output = await joyCaptionClient.predict("/stream_chat", {
|
181 |
+
input_image: state.userImage,
|
182 |
+
caption_type: "Descriptive", // Using descriptive type as base
|
183 |
+
caption_length: "very long", // Needs to be string
|
184 |
+
extra_options: [], // No extra options needed
|
185 |
+
name_input: "", // No name needed
|
186 |
+
custom_prompt: MONSTER_GENERATION_PROMPT // Our custom monster generation prompt
|
187 |
+
});
|
188 |
|
189 |
const [prompt, caption] = output.data;
|
190 |
// The caption now contains the full monster concept with lore, visual description, and rarity
|