UNPKG

@aivue/image-caption

Version:

AI-powered image captioning for Vue.js applications using Hugging Face BLIP models

32 lines (31 loc) 1.96 kB
import './styles/image-caption.css'; import type { ImageCaptionConfig, ImageCaptionOptions, ImageCaptionResult, ImageCaptionError, ImageUploadEvent, CaptionHistory, ImageCaptionState, HuggingFaceResponse, ImageProcessingOptions, CaptionGenerationOptions, BatchCaptionRequest, BatchCaptionResult, ImageCaptionAnalytics, ModelInfo } from './types'; import { AVAILABLE_MODELS, DEFAULT_CONFIG, SUPPORTED_IMAGE_TYPES, MAX_IMAGE_SIZE, MAX_BATCH_SIZE } from './types'; import { useImageCaption } from './composables/useImageCaption'; import type { UseImageCaptionOptions, UseImageCaptionReturn } from './composables/useImageCaption'; export { default as AiImageCaption } from './components/AiImageCaption.vue'; export { useImageCaption }; export type { UseImageCaptionOptions, UseImageCaptionReturn }; export type { ImageCaptionConfig, ImageCaptionOptions, ImageCaptionResult, ImageCaptionError, ImageUploadEvent, CaptionHistory, ImageCaptionState, HuggingFaceResponse, ImageProcessingOptions, CaptionGenerationOptions, BatchCaptionRequest, BatchCaptionResult, ImageCaptionAnalytics, ModelInfo }; export { AVAILABLE_MODELS, DEFAULT_CONFIG, SUPPORTED_IMAGE_TYPES, MAX_IMAGE_SIZE, MAX_BATCH_SIZE }; export { createImageCaptionClient } from './utils/client'; export { validateImageFile, resizeImageFile, convertToBase64 } from './utils/image'; import type { App } from 'vue'; export interface ImageCaptionPluginOptions { apiKey?: string; defaultModel?: string; globalConfig?: Partial<ImageCaptionConfig>; } export declare const ImageCaptionPlugin: { install(app: App, options?: ImageCaptionPluginOptions): void; }; declare const _default: { AiImageCaption: import("vue").DefineComponent<{}, {}, any>; useImageCaption: typeof useImageCaption; ImageCaptionPlugin: { install(app: App, options?: ImageCaptionPluginOptions): void; }; AVAILABLE_MODELS: ModelInfo[]; DEFAULT_CONFIG: ImageCaptionConfig; }; export default _default;