diff --git a/js/src/lib/components/InferenceWidget/InferenceWidget.svelte b/js/src/lib/components/InferenceWidget/InferenceWidget.svelte index 2b31d2f34..35951dc8b 100644 --- a/js/src/lib/components/InferenceWidget/InferenceWidget.svelte +++ b/js/src/lib/components/InferenceWidget/InferenceWidget.svelte @@ -10,21 +10,21 @@ import FeatureExtractionWidget from "./widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte"; import FillMaskWidget from "./widgets/FillMaskWidget/FillMaskWidget.svelte"; import ImageClassificationWidget from "./widgets/ImageClassificationWidget/ImageClassificationWidget.svelte"; + import ImageSegmentationWidget from "./widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte"; import ImageToImageWidget from "./widgets/ImageToImageWidget/ImageToImageWidget.svelte"; import ImageToTextWidget from "./widgets/ImageToTextWidget/ImageToTextWidget.svelte"; - import ImageSegmentationWidget from "./widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte"; import ObjectDetectionWidget from "./widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte"; import QuestionAnsweringWidget from "./widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte"; - import VisualQuestionAnsweringWidget from "./widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte"; + import ReinforcementLearningWidget from "./widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte"; import SentenceSimilarityWidget from "./widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte"; import SummarizationWidget from "./widgets/SummarizationWidget/SummarizationWidget.svelte"; import TableQuestionAnsweringWidget from "./widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte"; + import TabularDataWidget from "./widgets/TabularDataWidget/TabularDataWidget.svelte"; import TextGenerationWidget from "./widgets/TextGenerationWidget/TextGenerationWidget.svelte"; import TextToImageWidget from "./widgets/TextToImageWidget/TextToImageWidget.svelte"; import TextToSpeechWidget from "./widgets/TextToSpeechWidget/TextToSpeechWidget.svelte"; import TokenClassificationWidget from "./widgets/TokenClassificationWidget/TokenClassificationWidget.svelte"; - import TabularDataWidget from "./widgets/TabularDataWidget/TabularDataWidget.svelte"; - import ReinforcementLearningWidget from "./widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte"; + import VisualQuestionAnsweringWidget from "./widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte"; import ZeroShotClassificationWidget from "./widgets/ZeroShowClassificationWidget/ZeroShotClassificationWidget.svelte"; import ZeroShotImageClassificationWidget from "./widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte"; diff --git a/js/src/lib/components/InferenceWidget/shared/helpers.ts b/js/src/lib/components/InferenceWidget/shared/helpers.ts index 07513d705..9e04438e7 100644 --- a/js/src/lib/components/InferenceWidget/shared/helpers.ts +++ b/js/src/lib/components/InferenceWidget/shared/helpers.ts @@ -186,7 +186,7 @@ export async function getModelLoadInfo( if (response.ok && typeof output === "object" && output.loaded !== undefined) { // eslint-disable-next-line @typescript-eslint/naming-convention const {state, compute_type} = output; - return {compute_type, state} + return {compute_type, state}; } else { console.warn(response.status, output.error); return {state: "error" }; diff --git a/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte index 593b5e8e3..ba8c8361c 100644 --- a/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte +++ b/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte @@ -169,7 +169,7 @@ } -s; + export type WidgetInputSample = Record; /**