From af901947a2a2668892c566c0af529773a1088bac Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Wed, 26 Oct 2022 11:44:35 +0200 Subject: [PATCH 1/6] Copy svelte component from hub-docs --- .../Icons/IconAudioClassification.svelte | 21 +++++ .../Icons/IconAudioToAudio.svelte | 23 ++++++ .../IconAutomaticSpeechRecognition.svelte | 23 ++++++ .../Icons/IconConversational.svelte | 23 ++++++ .../IconDocumentQuestionAnswering.svelte | 13 ++++ .../Icons/IconFeatureExtraction.svelte | 21 +++++ .../PipelineIcon/Icons/IconFillMask.svelte | 27 +++++++ .../Icons/IconImageClassification.svelte | 27 +++++++ .../Icons/IconImageSegmentation.svelte | 24 ++++++ .../Icons/IconImageToImage.svelte | 25 ++++++ .../PipelineIcon/Icons/IconImageToText.svelte | 29 +++++++ .../Icons/IconObjectDetection.svelte | 27 +++++++ .../Icons/IconQuestionAnswering.svelte | 21 +++++ .../Icons/IconReinforcementLearning.svelte | 23 ++++++ .../PipelineIcon/Icons/IconRobotics.svelte | 22 ++++++ .../Icons/IconSentenceSimilarity.svelte | 29 +++++++ .../Icons/IconSummarization.svelte | 24 ++++++ .../Icons/IconTableQuestionAnswering.svelte | 21 +++++ .../Icons/IconTabularClassification.svelte | 22 ++++++ .../Icons/IconTabularRegression.svelte | 20 +++++ .../Icons/IconText2textGeneration.svelte | 27 +++++++ .../Icons/IconTextClassification.svelte | 33 ++++++++ .../Icons/IconTextGeneration.svelte | 27 +++++++ .../PipelineIcon/Icons/IconTextToImage.svelte | 25 ++++++ .../Icons/IconTextToSpeech.svelte | 23 ++++++ .../Icons/IconTokenClassification.svelte | 33 ++++++++ .../PipelineIcon/Icons/IconTranslation.svelte | 24 ++++++ .../IconUnconditionalImageGeneration.svelte | 25 ++++++ .../Icons/IconVoiceActivityDetection.svelte | 23 ++++++ .../Icons/IconZeroShotClassification.svelte | 51 ++++++++++++ kit/src/lib/PipelineIcon/PipelineIcon.svelte | 77 +++++++++++++++++++ 31 files changed, 833 insertions(+) create mode 100644 kit/src/lib/PipelineIcon/Icons/IconAudioClassification.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconAudioToAudio.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconAutomaticSpeechRecognition.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconConversational.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconDocumentQuestionAnswering.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconFeatureExtraction.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconFillMask.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconImageClassification.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconImageSegmentation.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconImageToImage.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconImageToText.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconObjectDetection.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconQuestionAnswering.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconReinforcementLearning.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconRobotics.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconSentenceSimilarity.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconSummarization.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTableQuestionAnswering.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTabularClassification.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTabularRegression.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconText2textGeneration.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTextClassification.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTextGeneration.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTextToImage.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTextToSpeech.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTokenClassification.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconTranslation.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconUnconditionalImageGeneration.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconVoiceActivityDetection.svelte create mode 100644 kit/src/lib/PipelineIcon/Icons/IconZeroShotClassification.svelte create mode 100644 kit/src/lib/PipelineIcon/PipelineIcon.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconAudioClassification.svelte b/kit/src/lib/PipelineIcon/Icons/IconAudioClassification.svelte new file mode 100644 index 00000000..96357092 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconAudioClassification.svelte @@ -0,0 +1,21 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconAudioToAudio.svelte b/kit/src/lib/PipelineIcon/Icons/IconAudioToAudio.svelte new file mode 100644 index 00000000..ae5c4aee --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconAudioToAudio.svelte @@ -0,0 +1,23 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconAutomaticSpeechRecognition.svelte b/kit/src/lib/PipelineIcon/Icons/IconAutomaticSpeechRecognition.svelte new file mode 100644 index 00000000..01b18c54 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconAutomaticSpeechRecognition.svelte @@ -0,0 +1,23 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconConversational.svelte b/kit/src/lib/PipelineIcon/Icons/IconConversational.svelte new file mode 100644 index 00000000..38e01c10 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconConversational.svelte @@ -0,0 +1,23 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconDocumentQuestionAnswering.svelte b/kit/src/lib/PipelineIcon/Icons/IconDocumentQuestionAnswering.svelte new file mode 100644 index 00000000..6c1c8429 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconDocumentQuestionAnswering.svelte @@ -0,0 +1,13 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconFeatureExtraction.svelte b/kit/src/lib/PipelineIcon/Icons/IconFeatureExtraction.svelte new file mode 100644 index 00000000..c1806a76 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconFeatureExtraction.svelte @@ -0,0 +1,21 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconFillMask.svelte b/kit/src/lib/PipelineIcon/Icons/IconFillMask.svelte new file mode 100644 index 00000000..e096d5a8 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconFillMask.svelte @@ -0,0 +1,27 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageClassification.svelte b/kit/src/lib/PipelineIcon/Icons/IconImageClassification.svelte new file mode 100644 index 00000000..663fb081 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconImageClassification.svelte @@ -0,0 +1,27 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageSegmentation.svelte b/kit/src/lib/PipelineIcon/Icons/IconImageSegmentation.svelte new file mode 100644 index 00000000..d84e55c7 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconImageSegmentation.svelte @@ -0,0 +1,24 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageToImage.svelte b/kit/src/lib/PipelineIcon/Icons/IconImageToImage.svelte new file mode 100644 index 00000000..1ea332d3 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconImageToImage.svelte @@ -0,0 +1,25 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageToText.svelte b/kit/src/lib/PipelineIcon/Icons/IconImageToText.svelte new file mode 100644 index 00000000..08ae7a89 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconImageToText.svelte @@ -0,0 +1,29 @@ + + +​ + diff --git a/kit/src/lib/PipelineIcon/Icons/IconObjectDetection.svelte b/kit/src/lib/PipelineIcon/Icons/IconObjectDetection.svelte new file mode 100644 index 00000000..07163af2 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconObjectDetection.svelte @@ -0,0 +1,27 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconQuestionAnswering.svelte b/kit/src/lib/PipelineIcon/Icons/IconQuestionAnswering.svelte new file mode 100644 index 00000000..b57d90ac --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconQuestionAnswering.svelte @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconReinforcementLearning.svelte b/kit/src/lib/PipelineIcon/Icons/IconReinforcementLearning.svelte new file mode 100644 index 00000000..802dc243 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconReinforcementLearning.svelte @@ -0,0 +1,23 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconRobotics.svelte b/kit/src/lib/PipelineIcon/Icons/IconRobotics.svelte new file mode 100644 index 00000000..6f354638 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconRobotics.svelte @@ -0,0 +1,22 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconSentenceSimilarity.svelte b/kit/src/lib/PipelineIcon/Icons/IconSentenceSimilarity.svelte new file mode 100644 index 00000000..b9decc7f --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconSentenceSimilarity.svelte @@ -0,0 +1,29 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconSummarization.svelte b/kit/src/lib/PipelineIcon/Icons/IconSummarization.svelte new file mode 100644 index 00000000..51cc2c3c --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconSummarization.svelte @@ -0,0 +1,24 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTableQuestionAnswering.svelte b/kit/src/lib/PipelineIcon/Icons/IconTableQuestionAnswering.svelte new file mode 100644 index 00000000..c1102734 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTableQuestionAnswering.svelte @@ -0,0 +1,21 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTabularClassification.svelte b/kit/src/lib/PipelineIcon/Icons/IconTabularClassification.svelte new file mode 100644 index 00000000..d4ce233b --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTabularClassification.svelte @@ -0,0 +1,22 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTabularRegression.svelte b/kit/src/lib/PipelineIcon/Icons/IconTabularRegression.svelte new file mode 100644 index 00000000..ed4355c5 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTabularRegression.svelte @@ -0,0 +1,20 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconText2textGeneration.svelte b/kit/src/lib/PipelineIcon/Icons/IconText2textGeneration.svelte new file mode 100644 index 00000000..ed5a2c6c --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconText2textGeneration.svelte @@ -0,0 +1,27 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextClassification.svelte b/kit/src/lib/PipelineIcon/Icons/IconTextClassification.svelte new file mode 100644 index 00000000..e747e6d2 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTextClassification.svelte @@ -0,0 +1,33 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextGeneration.svelte b/kit/src/lib/PipelineIcon/Icons/IconTextGeneration.svelte new file mode 100644 index 00000000..7843decf --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTextGeneration.svelte @@ -0,0 +1,27 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextToImage.svelte b/kit/src/lib/PipelineIcon/Icons/IconTextToImage.svelte new file mode 100644 index 00000000..a7adab86 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTextToImage.svelte @@ -0,0 +1,25 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextToSpeech.svelte b/kit/src/lib/PipelineIcon/Icons/IconTextToSpeech.svelte new file mode 100644 index 00000000..7c533cfc --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTextToSpeech.svelte @@ -0,0 +1,23 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTokenClassification.svelte b/kit/src/lib/PipelineIcon/Icons/IconTokenClassification.svelte new file mode 100644 index 00000000..27f3d362 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTokenClassification.svelte @@ -0,0 +1,33 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconTranslation.svelte b/kit/src/lib/PipelineIcon/Icons/IconTranslation.svelte new file mode 100644 index 00000000..c0d34442 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconTranslation.svelte @@ -0,0 +1,24 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconUnconditionalImageGeneration.svelte b/kit/src/lib/PipelineIcon/Icons/IconUnconditionalImageGeneration.svelte new file mode 100644 index 00000000..87aec18e --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconUnconditionalImageGeneration.svelte @@ -0,0 +1,25 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconVoiceActivityDetection.svelte b/kit/src/lib/PipelineIcon/Icons/IconVoiceActivityDetection.svelte new file mode 100644 index 00000000..c896fee5 --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconVoiceActivityDetection.svelte @@ -0,0 +1,23 @@ + + + diff --git a/kit/src/lib/PipelineIcon/Icons/IconZeroShotClassification.svelte b/kit/src/lib/PipelineIcon/Icons/IconZeroShotClassification.svelte new file mode 100644 index 00000000..ebbe940e --- /dev/null +++ b/kit/src/lib/PipelineIcon/Icons/IconZeroShotClassification.svelte @@ -0,0 +1,51 @@ + + + diff --git a/kit/src/lib/PipelineIcon/PipelineIcon.svelte b/kit/src/lib/PipelineIcon/PipelineIcon.svelte new file mode 100644 index 00000000..0e65f4f8 --- /dev/null +++ b/kit/src/lib/PipelineIcon/PipelineIcon.svelte @@ -0,0 +1,77 @@ + + + From 547ea6ee63bde8f75b4d5fd83917eb0da12d3989 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Wed, 26 Oct 2022 11:49:25 +0200 Subject: [PATCH 2/6] Add svelte components --- kit/src/lib/PipelineIcon.svelte | 77 +++++++++++++++++++ kit/src/lib/PipelineIcon/PipelineIcon.svelte | 77 ------------------- .../IconAudioClassification.svelte | 0 .../IconAudioToAudio.svelte | 0 .../IconAutomaticSpeechRecognition.svelte | 0 .../IconConversational.svelte | 0 .../IconDocumentQuestionAnswering.svelte | 0 .../IconFeatureExtraction.svelte | 0 .../IconFillMask.svelte | 0 .../IconImageClassification.svelte | 0 .../IconImageSegmentation.svelte | 0 .../IconImageToImage.svelte | 0 .../IconImageToText.svelte | 0 .../IconObjectDetection.svelte | 0 .../IconQuestionAnswering.svelte | 0 .../IconReinforcementLearning.svelte | 0 .../IconRobotics.svelte | 0 .../IconSentenceSimilarity.svelte | 0 .../IconSummarization.svelte | 0 .../IconTableQuestionAnswering.svelte | 0 .../IconTabularClassification.svelte | 0 .../IconTabularRegression.svelte | 0 .../IconText2textGeneration.svelte | 0 .../IconTextClassification.svelte | 0 .../IconTextGeneration.svelte | 0 .../IconTextToImage.svelte | 0 .../IconTextToSpeech.svelte | 0 .../IconTokenClassification.svelte | 0 .../IconTranslation.svelte | 0 .../IconUnconditionalImageGeneration.svelte | 0 .../IconVoiceActivityDetection.svelte | 0 .../IconZeroShotClassification.svelte | 0 32 files changed, 77 insertions(+), 77 deletions(-) create mode 100644 kit/src/lib/PipelineIcon.svelte delete mode 100644 kit/src/lib/PipelineIcon/PipelineIcon.svelte rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconAudioClassification.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconAudioToAudio.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconAutomaticSpeechRecognition.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconConversational.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconDocumentQuestionAnswering.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconFeatureExtraction.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconFillMask.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconImageClassification.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconImageSegmentation.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconImageToImage.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconImageToText.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconObjectDetection.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconQuestionAnswering.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconReinforcementLearning.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconRobotics.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconSentenceSimilarity.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconSummarization.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTableQuestionAnswering.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTabularClassification.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTabularRegression.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconText2textGeneration.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTextClassification.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTextGeneration.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTextToImage.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTextToSpeech.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTokenClassification.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconTranslation.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconUnconditionalImageGeneration.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconVoiceActivityDetection.svelte (100%) rename kit/src/lib/{PipelineIcon/Icons => PipelineIcons}/IconZeroShotClassification.svelte (100%) diff --git a/kit/src/lib/PipelineIcon.svelte b/kit/src/lib/PipelineIcon.svelte new file mode 100644 index 00000000..e7ad0264 --- /dev/null +++ b/kit/src/lib/PipelineIcon.svelte @@ -0,0 +1,77 @@ + + + diff --git a/kit/src/lib/PipelineIcon/PipelineIcon.svelte b/kit/src/lib/PipelineIcon/PipelineIcon.svelte deleted file mode 100644 index 0e65f4f8..00000000 --- a/kit/src/lib/PipelineIcon/PipelineIcon.svelte +++ /dev/null @@ -1,77 +0,0 @@ - - - diff --git a/kit/src/lib/PipelineIcon/Icons/IconAudioClassification.svelte b/kit/src/lib/PipelineIcons/IconAudioClassification.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconAudioClassification.svelte rename to kit/src/lib/PipelineIcons/IconAudioClassification.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconAudioToAudio.svelte b/kit/src/lib/PipelineIcons/IconAudioToAudio.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconAudioToAudio.svelte rename to kit/src/lib/PipelineIcons/IconAudioToAudio.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconAutomaticSpeechRecognition.svelte b/kit/src/lib/PipelineIcons/IconAutomaticSpeechRecognition.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconAutomaticSpeechRecognition.svelte rename to kit/src/lib/PipelineIcons/IconAutomaticSpeechRecognition.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconConversational.svelte b/kit/src/lib/PipelineIcons/IconConversational.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconConversational.svelte rename to kit/src/lib/PipelineIcons/IconConversational.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconDocumentQuestionAnswering.svelte b/kit/src/lib/PipelineIcons/IconDocumentQuestionAnswering.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconDocumentQuestionAnswering.svelte rename to kit/src/lib/PipelineIcons/IconDocumentQuestionAnswering.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconFeatureExtraction.svelte b/kit/src/lib/PipelineIcons/IconFeatureExtraction.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconFeatureExtraction.svelte rename to kit/src/lib/PipelineIcons/IconFeatureExtraction.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconFillMask.svelte b/kit/src/lib/PipelineIcons/IconFillMask.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconFillMask.svelte rename to kit/src/lib/PipelineIcons/IconFillMask.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageClassification.svelte b/kit/src/lib/PipelineIcons/IconImageClassification.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconImageClassification.svelte rename to kit/src/lib/PipelineIcons/IconImageClassification.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageSegmentation.svelte b/kit/src/lib/PipelineIcons/IconImageSegmentation.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconImageSegmentation.svelte rename to kit/src/lib/PipelineIcons/IconImageSegmentation.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageToImage.svelte b/kit/src/lib/PipelineIcons/IconImageToImage.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconImageToImage.svelte rename to kit/src/lib/PipelineIcons/IconImageToImage.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconImageToText.svelte b/kit/src/lib/PipelineIcons/IconImageToText.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconImageToText.svelte rename to kit/src/lib/PipelineIcons/IconImageToText.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconObjectDetection.svelte b/kit/src/lib/PipelineIcons/IconObjectDetection.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconObjectDetection.svelte rename to kit/src/lib/PipelineIcons/IconObjectDetection.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconQuestionAnswering.svelte b/kit/src/lib/PipelineIcons/IconQuestionAnswering.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconQuestionAnswering.svelte rename to kit/src/lib/PipelineIcons/IconQuestionAnswering.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconReinforcementLearning.svelte b/kit/src/lib/PipelineIcons/IconReinforcementLearning.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconReinforcementLearning.svelte rename to kit/src/lib/PipelineIcons/IconReinforcementLearning.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconRobotics.svelte b/kit/src/lib/PipelineIcons/IconRobotics.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconRobotics.svelte rename to kit/src/lib/PipelineIcons/IconRobotics.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconSentenceSimilarity.svelte b/kit/src/lib/PipelineIcons/IconSentenceSimilarity.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconSentenceSimilarity.svelte rename to kit/src/lib/PipelineIcons/IconSentenceSimilarity.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconSummarization.svelte b/kit/src/lib/PipelineIcons/IconSummarization.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconSummarization.svelte rename to kit/src/lib/PipelineIcons/IconSummarization.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTableQuestionAnswering.svelte b/kit/src/lib/PipelineIcons/IconTableQuestionAnswering.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTableQuestionAnswering.svelte rename to kit/src/lib/PipelineIcons/IconTableQuestionAnswering.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTabularClassification.svelte b/kit/src/lib/PipelineIcons/IconTabularClassification.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTabularClassification.svelte rename to kit/src/lib/PipelineIcons/IconTabularClassification.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTabularRegression.svelte b/kit/src/lib/PipelineIcons/IconTabularRegression.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTabularRegression.svelte rename to kit/src/lib/PipelineIcons/IconTabularRegression.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconText2textGeneration.svelte b/kit/src/lib/PipelineIcons/IconText2textGeneration.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconText2textGeneration.svelte rename to kit/src/lib/PipelineIcons/IconText2textGeneration.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextClassification.svelte b/kit/src/lib/PipelineIcons/IconTextClassification.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTextClassification.svelte rename to kit/src/lib/PipelineIcons/IconTextClassification.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextGeneration.svelte b/kit/src/lib/PipelineIcons/IconTextGeneration.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTextGeneration.svelte rename to kit/src/lib/PipelineIcons/IconTextGeneration.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextToImage.svelte b/kit/src/lib/PipelineIcons/IconTextToImage.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTextToImage.svelte rename to kit/src/lib/PipelineIcons/IconTextToImage.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTextToSpeech.svelte b/kit/src/lib/PipelineIcons/IconTextToSpeech.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTextToSpeech.svelte rename to kit/src/lib/PipelineIcons/IconTextToSpeech.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTokenClassification.svelte b/kit/src/lib/PipelineIcons/IconTokenClassification.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTokenClassification.svelte rename to kit/src/lib/PipelineIcons/IconTokenClassification.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconTranslation.svelte b/kit/src/lib/PipelineIcons/IconTranslation.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconTranslation.svelte rename to kit/src/lib/PipelineIcons/IconTranslation.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconUnconditionalImageGeneration.svelte b/kit/src/lib/PipelineIcons/IconUnconditionalImageGeneration.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconUnconditionalImageGeneration.svelte rename to kit/src/lib/PipelineIcons/IconUnconditionalImageGeneration.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconVoiceActivityDetection.svelte b/kit/src/lib/PipelineIcons/IconVoiceActivityDetection.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconVoiceActivityDetection.svelte rename to kit/src/lib/PipelineIcons/IconVoiceActivityDetection.svelte diff --git a/kit/src/lib/PipelineIcon/Icons/IconZeroShotClassification.svelte b/kit/src/lib/PipelineIcons/IconZeroShotClassification.svelte similarity index 100% rename from kit/src/lib/PipelineIcon/Icons/IconZeroShotClassification.svelte rename to kit/src/lib/PipelineIcons/IconZeroShotClassification.svelte From 19ba9da2556294f1777c865793d13e9ea47f8716 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Wed, 26 Oct 2022 12:07:31 +0200 Subject: [PATCH 3/6] Add pipeline tag --- kit/src/lib/PipelineIcon.svelte | 10 +- kit/src/lib/PipelineTag.svelte | 14 + kit/src/lib/pipeline.ts | 517 ++++++++++++++++++++++++++++++++ 3 files changed, 540 insertions(+), 1 deletion(-) create mode 100644 kit/src/lib/PipelineTag.svelte create mode 100644 kit/src/lib/pipeline.ts diff --git a/kit/src/lib/PipelineIcon.svelte b/kit/src/lib/PipelineIcon.svelte index e7ad0264..f8388c6b 100644 --- a/kit/src/lib/PipelineIcon.svelte +++ b/kit/src/lib/PipelineIcon.svelte @@ -1,5 +1,6 @@ diff --git a/kit/src/lib/PipelineTag.svelte b/kit/src/lib/PipelineTag.svelte new file mode 100644 index 00000000..40168303 --- /dev/null +++ b/kit/src/lib/PipelineTag.svelte @@ -0,0 +1,14 @@ + + +
+ + + {PIPELINE_DATA[pipeline].name ?? pipeline} + +
diff --git a/kit/src/lib/pipeline.ts b/kit/src/lib/pipeline.ts new file mode 100644 index 00000000..46739e8e --- /dev/null +++ b/kit/src/lib/pipeline.ts @@ -0,0 +1,517 @@ +export const PIPELINE_DATA = { + "text-classification": { + name: "Text Classification", + subtasks: [ + { + type: "acceptability-classification", + name: "Acceptability Classification", + }, + { + type: "entity-linking-classification", + name: "Entity Linking Classification", + }, + { + type: "fact-checking", + name: "Fact Checking", + }, + { + type: "intent-classification", + name: "Intent Classification", + }, + { + type: "multi-class-classification", + name: "Multi Class Classification", + }, + { + type: "multi-label-classification", + name: "Multi Label Classification", + }, + { + type: "multi-input-text-classification", + name: "Multi-input Text Classification", + }, + { + type: "natural-language-inference", + name: "Natural Language Inference", + }, + { + type: "semantic-similarity-classification", + name: "Semantic Similarity Classification", + }, + { + type: "sentiment-classification", + name: "Sentiment Classification", + }, + { + type: "topic-classification", + name: "Topic Classification", + }, + { + type: "semantic-similarity-scoring", + name: "Semantic Similarity Scoring", + }, + { + type: "sentiment-scoring", + name: "Sentiment Scoring", + }, + { + type: "sentiment-analysis", + name: "Sentiment Analysis", + }, + { + type: "hate-speech-detection", + name: "Hate Speech Detection", + }, + { + type: "text-scoring", + name: "Text Scoring", + }, + ], + modality: "nlp", + color: "orange", + }, + "token-classification": { + name: "Token Classification", + subtasks: [ + { + type: "named-entity-recognition", + name: "Named Entity Recognition", + }, + { + type: "part-of-speech", + name: "Part of Speech", + }, + { + type: "parsing", + name: "Parsing", + }, + { + type: "lemmatization", + name: "Lemmatization", + }, + { + type: "word-sense-disambiguation", + name: "Word Sense Disambiguation", + }, + { + type: "coreference-resolution", + name: "Coreference-resolution", + }, + ], + modality: "nlp", + color: "blue", + }, + "table-question-answering": { + name: "Table Question Answering", + modality: "nlp", + color: "green", + }, + "question-answering": { + name: "Question Answering", + subtasks: [ + { + type: "extractive-qa", + name: "Extractive QA", + }, + { + type: "open-domain-qa", + name: "Open Domain QA", + }, + { + type: "closed-domain-qa", + name: "Closed Domain QA", + }, + ], + modality: "nlp", + color: "blue", + }, + "zero-shot-classification": { + name: "Zero-Shot Classification", + modality: "nlp", + color: "yellow", + }, + "translation": { + name: "Translation", + modality: "nlp", + color: "green", + }, + "summarization": { + name: "Summarization", + subtasks: [ + { + type: "news-articles-summarization", + name: "News Articles Summarization", + }, + { + type: "news-articles-headline-generation", + name: "News Articles Headline Generation", + }, + ], + modality: "nlp", + color: "indigo", + }, + "conversational": { + name: "Conversational", + subtasks: [ + { + type: "dialogue-generation", + name: "Dialogue Generation", + }, + ], + modality: "nlp", + color: "green", + }, + "feature-extraction": { + name: "Feature Extraction", + modality: "multimodal", + color: "red", + }, + "text-generation": { + name: "Text Generation", + subtasks: [ + { + type: "dialogue-modeling", + name: "Dialogue Modeling", + }, + { + type: "language-modeling", + name: "Language Modeling", + }, + ], + modality: "nlp", + color: "indigo", + }, + "text2text-generation": { + name: "Text2Text Generation", + subtasks: [ + { + type: "text-simplification", + name: "Text simplification", + }, + { + type: "explanation-generation", + name: "Explanation Generation", + }, + { + type: "abstractive-qa", + name: "Abstractive QA", + }, + { + type: "open-domain-abstractive-qa", + name: "Open Domain Abstractive QA", + }, + { + type: "closed-domain-qa", + name: "Closed Domain QA", + }, + { + type: "open-book-qa", + name: "Open Book QA", + }, + { + type: "closed-book-qa", + name: "Closed Book QA", + }, + ], + modality: "nlp", + color: "indigo", + }, + "fill-mask": { + name: "Fill-Mask", + subtasks: [ + { + type: "slot-filling", + name: "Slot Filling", + }, + { + type: "masked-language-modeling", + name: "Masked Language Modeling", + }, + ], + modality: "nlp", + color: "red", + }, + "sentence-similarity": { + name: "Sentence Similarity", + modality: "nlp", + color: "yellow", + }, + "text-to-speech": { + name: "Text-to-Speech", + modality: "audio", + color: "yellow", + }, + "automatic-speech-recognition": { + name: "Automatic Speech Recognition", + modality: "audio", + color: "yellow", + }, + "audio-to-audio": { + name: "Audio-to-Audio", + modality: "audio", + color: "blue", + }, + "audio-classification": { + name: "Audio Classification", + subtasks: [ + { + type: "keyword-spotting", + name: "Keyword Spotting", + }, + { + type: "speaker-identification", + name: "Speaker Identification", + }, + { + type: "audio-intent-classification", + name: "Audio Intent Classification", + }, + { + type: "audio-emotion-recognition", + name: "Audio Emotion Recognition", + }, + { + type: "audio-language-identification", + name: "Audio Language Identification", + }, + ], + modality: "audio", + color: "green", + }, + "voice-activity-detection": { + name: "Voice Activity Detection", + modality: "audio", + color: "red", + }, + "image-classification": { + name: "Image Classification", + subtasks: [ + { + type: "multi-label-image-classification", + name: "Multi Label Image Classification", + }, + { + type: "multi-class-image-classification", + name: "Multi Class Image Classification", + }, + ], + modality: "cv", + color: "blue", + }, + "object-detection": { + name: "Object Detection", + subtasks: [ + { + type: "face-detection", + name: "Face Detection", + }, + { + type: "vehicle-detection", + name: "Vehicle Detection", + }, + ], + modality: "cv", + color: "yellow", + }, + "image-segmentation": { + name: "Image Segmentation", + subtasks: [ + { + type: "instance-segmentation", + name: "Instance Segmentation", + }, + { + type: "semantic-segmentation", + name: "Semantic Segmentation", + }, + { + type: "panoptic-segmentation", + name: "Panoptic Segmentation", + }, + ], + modality: "cv", + color: "green", + }, + "text-to-image": { + name: "Text-to-Image", + modality: "multimodal", + color: "yellow", + }, + "image-to-text": { + name: "Image-to-Text", + subtasks: [ + { + type: "image-captioning", + name: "Image Captioning", + }, + ], + modality: "multimodal", + color: "red", + }, + "image-to-image": { + name: "Image-to-Image", + modality: "cv", + color: "indigo", + }, + "unconditional-image-generation": { + name: "Unconditional Image Generation", + modality: "cv", + color: "green", + }, + "reinforcement-learning": { + name: "Reinforcement Learning", + modality: "rl", + color: "red", + hideInDatasets: true, + }, + "robotics": { + name: "Robotics", + modality: "rl", + subtasks: [ + { + type: "grasping", + name: "Grasping", + }, + { + type: "task-planning", + name: "Task Planning", + }, + ], + color: "blue", + hideInDatasets: true, + }, + "tabular-classification": { + name: "Tabular Classification", + modality: "tabular", + subtasks: [ + { + type: "tabular-multi-class-classification", + name: "Tabular Multi Class Classification", + }, + { + type: "tabular-multi-label-classification", + name: "Tabular Multi Label Classification", + }, + ], + color: "blue", + }, + "tabular-regression": { + name: "Tabular Regression", + modality: "tabular", + subtasks: [ + { + type: "tabular-single-column-regression", + name: "Tabular Single Column Regression", + }, + ], + color: "blue", + }, + "tabular-to-text": { + name: "Tabular to Text", + modality: "tabular", + subtasks: [ + { + type: "rdf-to-text", + name: "RDF to text", + }, + ], + color: "blue", + hideInModels: true, + }, + "table-to-text": { + name: "Table to Text", + modality: "nlp", + color: "blue", + hideInModels: true, + }, + "multiple-choice": { + name: "Multiple Choice", + subtasks: [ + { + type: "multiple-choice-qa", + name: "Multiple Choice QA", + }, + { + type: "multiple-choice-coreference-resolution", + name: "Multiple Choice Coreference Resolution", + }, + ], + modality: "nlp", + color: "blue", + hideInModels: true, + }, + "text-retrieval": { + name: "Text Retrieval", + subtasks: [ + { + type: "document-retrieval", + name: "Document Retrieval", + }, + { + type: "utterance-retrieval", + name: "Utterance Retrieval", + }, + { + type: "entity-linking-retrieval", + name: "Entity Linking Retrieval", + }, + { + type: "fact-checking-retrieval", + name: "Fact Checking Retrieval", + }, + ], + modality: "nlp", + color: "indigo", + hideInModels: true, + }, + "time-series-forecasting": { + name: "Time Series Forecasting", + modality: "tabular", + subtasks: [ + { + type: "univariate-time-series-forecasting", + name: "Univariate Time Series Forecasting", + }, + { + type: "multivariate-time-series-forecasting", + name: "Multivariate Time Series Forecasting", + }, + ], + color: "blue", + hideInModels: true, + }, + "visual-question-answering": { + name: "Visual Question Answering", + subtasks: [ + { + type: "visual-question-answering", + name: "Visual Question Answering", + }, + ], + modality: "multimodal", + color: "red", + }, + "document-question-answering": { + name: "Document Question Answering", + subtasks: [ + { + type: "document-question-answering", + name: "Document Question Answering", + }, + ], + modality: "multimodal", + color: "blue", + hideInDatasets: true, + }, + "zero-shot-image-classification": { + name: "Zero-Shot Image Classification", + modality: "cv", + color: "yellow", + }, + "other": { + name: "Other", + modality: "other", + color: "blue", + hideInModels: true, + }, +}; \ No newline at end of file From f53447ba15a06d5b471b7ad7587557e19a63205f Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Wed, 26 Oct 2022 12:13:45 +0200 Subject: [PATCH 4/6] Add css --- kit/src/lib/PipelineTag.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kit/src/lib/PipelineTag.svelte b/kit/src/lib/PipelineTag.svelte index 40168303..60be10f7 100644 --- a/kit/src/lib/PipelineTag.svelte +++ b/kit/src/lib/PipelineTag.svelte @@ -6,7 +6,7 @@ export let pipeline = ""; -
+
{PIPELINE_DATA[pipeline].name ?? pipeline} From 22de170c5b609baa44454c2771d3782c19772361 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Wed, 26 Oct 2022 12:16:27 +0200 Subject: [PATCH 5/6] import new components py --- src/doc_builder/convert_md_to_mdx.py | 2 ++ src/doc_builder/convert_rst_to_mdx.py | 2 ++ tests/test_convert_md_to_mdx.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/doc_builder/convert_md_to_mdx.py b/src/doc_builder/convert_md_to_mdx.py index e51202db..1bd766cb 100644 --- a/src/doc_builder/convert_md_to_mdx.py +++ b/src/doc_builder/convert_md_to_mdx.py @@ -48,6 +48,8 @@ def convert_md_to_mdx(md_text, page_info): import Added from "$lib/Added.svelte"; import Changed from "$lib/Changed.svelte"; import Deprecated from "$lib/Deprecated.svelte"; +import PipelineIcon from "$lib/PipelineIcon.svelte"; +import PipelineTag from "$lib/PipelineTag.svelte"; let fw: "pt" | "tf" = "pt"; onMount(() => { const urlParams = new URLSearchParams(window.location.search); diff --git a/src/doc_builder/convert_rst_to_mdx.py b/src/doc_builder/convert_rst_to_mdx.py index 506d0f9d..84551d79 100644 --- a/src/doc_builder/convert_rst_to_mdx.py +++ b/src/doc_builder/convert_rst_to_mdx.py @@ -677,6 +677,8 @@ def convert_rst_to_mdx(rst_text, page_info, add_imports=True): ' import Added from "$lib/Added.svelte";', ' import Changed from "$lib/Changed.svelte";', ' import Deprecated from "$lib/Deprecated.svelte";', + ' import PipelineIcon from "$lib/PipelineIcon.svelte";', + ' import PipelineTag from "$lib/PipelineTag.svelte";', " ", ' export let fw: "pt" | "tf"', "", diff --git a/tests/test_convert_md_to_mdx.py b/tests/test_convert_md_to_mdx.py index 8928a110..7f6715af 100644 --- a/tests/test_convert_md_to_mdx.py +++ b/tests/test_convert_md_to_mdx.py @@ -50,6 +50,8 @@ def test_convert_md_to_mdx(self): import Added from "$lib/Added.svelte"; import Changed from "$lib/Changed.svelte"; import Deprecated from "$lib/Deprecated.svelte"; +import PipelineIcon from "$lib/PipelineIcon.svelte"; +import PipelineTag from "$lib/PipelineTag.svelte"; let fw: "pt" | "tf" = "pt"; onMount(() => { const urlParams = new URLSearchParams(window.location.search); From 23c4a09cf2b15dbcc48cb2ffe1555d1c0803e834 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Wed, 26 Oct 2022 12:18:36 +0200 Subject: [PATCH 6/6] escape --- src/doc_builder/convert_md_to_mdx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc_builder/convert_md_to_mdx.py b/src/doc_builder/convert_md_to_mdx.py index 1bd766cb..25c9b5df 100644 --- a/src/doc_builder/convert_md_to_mdx.py +++ b/src/doc_builder/convert_md_to_mdx.py @@ -69,7 +69,7 @@ def convert_special_chars(text): Convert { and < that have special meanings in MDX. """ _re_lcub_svelte = re.compile( - r"<(Question|Tip|Added|Changed|Deprecated|DocNotebookDropdown|CourseFloatingBanner|FrameworkSwitch|audio)(((?!<(Question|Tip|Added|Changed|Deprecated|DocNotebookDropdown|CourseFloatingBanner|FrameworkSwitch|audio)).)*)>|&lcub;(#if|:else}|/if})", + r"<(Question|Tip|Added|Changed|Deprecated|DocNotebookDropdown|CourseFloatingBanner|FrameworkSwitch|audio|PipelineIcon|PipelineTag)(((?!<(Question|Tip|Added|Changed|Deprecated|DocNotebookDropdown|CourseFloatingBanner|FrameworkSwitch|audio|PipelineIcon|PipelineTag)).)*)>|&lcub;(#if|:else}|/if})", re.DOTALL, ) text = text.replace("{", "&lcub;") @@ -77,7 +77,7 @@ def convert_special_chars(text): text = _re_lcub_svelte.sub(lambda match: match[0].replace("&lcub;", "{"), text) # We don't want to replace those by the HTML code, so we temporarily set them at LTHTML text = re.sub( - r"<(img|br|hr|Youtube|Question|DocNotebookDropdown|CourseFloatingBanner|FrameworkSwitch|audio)", + r"<(img|br|hr|Youtube|Question|DocNotebookDropdown|CourseFloatingBanner|FrameworkSwitch|audio|PipelineIcon|PipelineTag)", r"LTHTML\1", text, ) # html void elements with no closing counterpart