gen?
Browse files
src/lib/components/PicletGenerator/PicletGenerator.svelte
CHANGED
@@ -302,13 +302,14 @@ Focus on: colors, body shape, eyes, limbs, mouth, and key visual features. Omit
|
|
302 |
}
|
303 |
|
304 |
try {
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
0.
|
310 |
-
|
311 |
-
|
|
|
312 |
]);
|
313 |
|
314 |
// Joy Caption Beta One returns just the caption text
|
|
|
302 |
}
|
303 |
|
304 |
try {
|
305 |
+
// Call Joy Caption Beta One with correct endpoint (no "/predict" - use default endpoint)
|
306 |
+
const output = await joyCaptionClient.predict([
|
307 |
+
workflowState.userImage, // input_image
|
308 |
+
"Write a detailed description for this image.", // prompt_box
|
309 |
+
0.6, // temperature_slider
|
310 |
+
0.9, // top_p_slider
|
311 |
+
512, // max_tokens_slider
|
312 |
+
false // log_prompt
|
313 |
]);
|
314 |
|
315 |
// Joy Caption Beta One returns just the caption text
|