Fraser commited on
Commit
df54477
·
1 Parent(s): b0969c4
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
- const output = await joyCaptionClient.predict(0, [
306
- workflowState.userImage, // input_image
307
- "Write a detailed description for this image.", // prompt
308
- 0.6, // temperature
309
- 0.9, // top_p
310
- 512, // max_new_tokens
311
- false // log_prompt
 
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