diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte
index 9fa5a10375..53faddd9e9 100644
--- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte
+++ b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte
@@ -73,15 +73,17 @@
onMount(() => {
(async () => {
- modelLoadInfo = await getModelLoadInfo(apiUrl, model.id, includeCredentials);
- $modelLoadStates[model.id] = modelLoadInfo;
- modelTooBig = modelLoadInfo?.state === "TooBig";
+ if (model.inference === InferenceDisplayability.Yes) {
+ modelLoadInfo = await getModelLoadInfo(apiUrl, model.id, includeCredentials);
+ $modelLoadStates[model.id] = modelLoadInfo;
+ modelTooBig = modelLoadInfo?.state === "TooBig";
- if (modelTooBig) {
- // disable the widget
- isDisabled = true;
- inputSamples = allInputSamples.filter((sample) => sample.output !== undefined);
- inputGroups = getExamplesGroups();
+ if (modelTooBig) {
+ // disable the widget
+ isDisabled = true;
+ inputSamples = allInputSamples.filter((sample) => sample.output !== undefined);
+ inputGroups = getExamplesGroups();
+ }
}
const exampleFromQueryParams = {} as TWidgetExample;
@@ -110,42 +112,44 @@