--- title: Video-to-Ghibli Style Converter emoji: 🎬 colorFrom: indigo colorTo: pink sdk: gradio sdk_version: 5.23.1 app_file: app.py pinned: false --- # Video-to-Ghibli Style Converter A Gradio web application that transforms videos into Studio Ghibli-style animations using OpenAI's GPT-4o. ## Features - Upload short videos for stylization - Apply custom style prompts - Secure API key handling (user provides their own key) - Real-time conversion status updates ## How It Works 1. Upload a short video (a few seconds is best) 2. Enter your OpenAI API key 3. Customize the style prompt if desired 4. Click "Stylize Video" and wait for processing The application: - Extracts frames from the video - Uses GPT-4o to analyze and transform each frame to Ghibli style - Reassembles the stylized frames into a new video ## Local Setup 1. Create a virtual environment: ``` python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` 2. Install dependencies: ``` pip install -r requirements.txt ``` 3. Make sure ffmpeg is installed on your system: - macOS: `brew install ffmpeg` - Ubuntu: `sudo apt-get install ffmpeg` - Windows: Download from [ffmpeg.org](https://ffmpeg.org/download.html) 4. Run the application: ``` python app.py ``` ## Notes - You need your own OpenAI API key with access to GPT-4o - Processing time depends on video length and frame rate - For best results, use videos that are a few seconds long