diff --git a/selector/src/models/notebook-metadata.ts b/selector/src/models/notebook-metadata.ts deleted file mode 100644 index 7b1ad07e766..00000000000 --- a/selector/src/models/notebook-metadata.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { CATEGORIES, TASKS_VALUES } from './notebook-tags.js'; - -type ObjectValues = T[keyof T]; - -export interface INotebookMetadata { - title: string; - description?: string; - path: string; - imageUrl: string | null; - createdDate: string; - modifiedDate: string; - links: { - github: string; - colab: string | null; - binder: string | null; - }; - tags: { - categories: ObjectValues[]; - tasks: typeof TASKS_VALUES; - libraries: string[]; - other: string[]; - }; -} diff --git a/selector/src/models/notebook-tags.js b/selector/src/models/notebook-tags.js deleted file mode 100644 index 75fca9f94c9..00000000000 --- a/selector/src/models/notebook-tags.js +++ /dev/null @@ -1,63 +0,0 @@ -export const CATEGORIES = /** @type {const} */ ({ - AI_TRENDS: 'AI Trends', - FIRST_STEPS: 'First Steps', - API_OVERVIEW: 'API Overview', - CONVERT: 'Convert', - OPTIMIZE: 'Optimize', - MODEL_DEMOS: 'Model Demos', - MODEL_TRAINING: 'Model Training', - LIVE_DEMOS: 'Live Demos', -}); - -export const TASKS = /** @type {const} */ ({ - MULTIMODAL: { - TEXT_TO_IMAGE: 'Text-to-Image', - IMAGE_TO_TEXT: 'Image-to-Text', - TEXT_TO_VIDEO: 'Text-to-Video', - VIDEO_TO_TEXT: 'Video-to-Text', - TEXT_TO_AUDIO: 'Text-to-Audio', - AUDIO_TO_TEXT: 'Audio-to-Text', - VISUAL_QUESTION_ANSWERING: 'Visual Question Answering', - FEATURE_EXTRACTION: 'Feature Extraction', - }, - CV: { - IMAGE_CLASSIFICATION: 'Image Classification', - IMAGE_SEGMENTATION: 'Image Segmentation', - IMAGE_INPAINTING: 'Image Inpainting', - IMAGE_TO_IMAGE: 'Image-to-Image', - OBJECT_DETECTION: 'Object Detection', - SALIENT_OBJECT_DETECTION: 'Salient Object Detection', - DEPTH_ESTIMTAION: 'Depth Estimation', - SUPER_RESOLUTION: 'Super Resolution', - STYLE_TRANSFER: 'Style Transfer', - POSE_ESTIMATION: 'Pose Estimation', - ZERO_SHOT_IMAGE_CLASSIFICATION: 'Zero-Shot Image Classification', - TEXT_DETECTION: 'Text Detection', - }, - NLP: { - TEXT_CLASSIFICATION: 'Text Classification', - TEXT_GENERATION: 'Text Generation', - TOKEN_CLASSIFICATION: 'Token Classification', - TRANSLATION: 'Translation', - TABLE_QUESTION_ANSWERING: 'Table Question Answering', - CONVERSATIONAL: 'Conversational', - ERROR_CORRECTION: 'Error Correction', - QUESTION_ANSWERING: 'Question Answering', - PARAPHRASE_IDENTIFICATION: 'Paraphrase Identification', - KNOWLEDGE_REPRESENTATION: 'Knowledge Representation', - NAMED_ENTITY_RECOGNITION: 'Named Entity Recognition', - }, - AUDIO: { - AUDIO_TO_AUDIO: 'Audio-to-Audio', - SPEECH_RECOGNITION: 'Speech Recognition', - AUDIO_COMPRESSION: 'Audio Compression', - VOICE_CONVERSION: 'Voice Conversion', - AUDIO_GENERATION: 'Audio Generation', - AUDIO_CLASSIFICATION: 'Audio Classification', - VOICE_ACTIVITY_DETECTION: 'Voice Activity Detection', - }, -}); - -export const TASKS_VALUES = Object.values(TASKS) - .map((v) => Object.values(v)) - .flat();