diff --git a/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte index 649f1cbf0..1871f940b 100644 --- a/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte +++ b/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte @@ -136,7 +136,7 @@ (async () => { const example = getWidgetExample(model, isAssetAndPromptInput); if (callApiOnMount && example) { - applyInputSample(example, { inferenceOpts: { isOnLoadCall: true } }); + await applyInputSample(example, { inferenceOpts: { isOnLoadCall: true } }); } })(); });