Overview:
The Alt Text Generator is a Vite + Svelte app that leverages the Azure OpenAI Service (GPT-4 Turbo with Vision) and a Vercel Serverless Function to analyze an image and generate a caption to be used as alt text.
Features:
- Utilizes Azure OpenAI Service: Integrates with GPT-4 Turbo with Vision for image analysis.
- Vercel Serverless Function: Utilizes a Vercel Serverless Function for backend processing.
- Generates Alt Text: Provides users with a caption to use as alt text for images.
- Easy Installation: Simple steps to set up and run the application locally.
Installation:
- Create a Microsoft Azure account and set up an OpenAI resource with Vision preview.
- Choose one of the supported Azure regions.
- Install Vercel CLI on your system.
- Clone the repository to your local machine.
- Run
npm installto install dependencies. - Rename the file
.env.exampleto.env. - Add your Azure Computer Vision endpoint and API key to the
.envfile. - Set your environment variables in the Vercel project using
vercel env add ENV_VARcommand. - Run
vercel devto start the application locally.
Summary:
The Alt Text Generator is an innovative tool that combines Azure OpenAI Service with a Vercel Serverless Function to provide users with descriptive captions for images, serving as alt text. The application’s simple setup process and key features make it a valuable asset for developers looking to enhance accessibility and user experience on their websites.