src/lib/components/PicletGenerator/PicletGenerator.svelte
CHANGED
@@ -302,16 +302,16 @@ Focus on: colors, body shape, eyes, limbs, mouth, and key visual features. Omit
|
|
302 |
}
|
303 |
|
304 |
try {
|
305 |
-
const output = await joyCaptionClient.predict(
|
306 |
workflowState.userImage, // input_image
|
307 |
-
"Descriptive",
|
308 |
-
"long",
|
309 |
-
[],
|
310 |
-
"",
|
311 |
-
""
|
312 |
]);
|
313 |
|
314 |
-
const [, caption] = output.data;
|
315 |
// Store the detailed object description
|
316 |
workflowState.imageCaption = caption;
|
317 |
console.log('Detailed object description generated:', caption);
|
|
|
302 |
}
|
303 |
|
304 |
try {
|
305 |
+
const output = await joyCaptionClient.predict(0, [
|
306 |
workflowState.userImage, // input_image
|
307 |
+
"Descriptive", // caption_type
|
308 |
+
"long", // caption_length
|
309 |
+
[], // extra_options
|
310 |
+
"", // name_input
|
311 |
+
"" // custom_prompt
|
312 |
]);
|
313 |
|
314 |
+
const [prompt, caption] = output.data;
|
315 |
// Store the detailed object description
|
316 |
workflowState.imageCaption = caption;
|
317 |
console.log('Detailed object description generated:', caption);
|