File size: 1,493 Bytes
6e67586 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
---
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 |