Reel Caption Maker is a tool for adding captions to Instagram reels. This guide will help you set up and run the application, even if you're not a developer.
1. Make sure you're in the project directory and your virtual environment is activated.
2. Start the Streamlit app:
```
streamlit run app.py
```
3. Your default web browser should open automatically. If it doesn't, copy the URL shown in the terminal (usually http://localhost:8501) and paste it into your browser.
To run the Reel Caption Maker using Docker, follow these steps:
1. Ensure you have Docker installed on your system.
2. If not, you can download and install it from [Docker's official website](https://www.docker.com/get-started).
3. Build the Docker image:
```
docker build -t reel-caption-maker .
```
4. Run the Docker container:
```
docker run -p 8501:8501 -v whisper_model:/root/.cache/huggingface reel-caption-maker
```
This command does the following:
- Maps port 8501 from the container to port 8501 on your host machine.
- Creates a volume named `whisper_model` to persist the Whisper model data.
5. Open your web browser and navigate to `http://localhost:8501` to use the Reel Caption Maker.
- Note: The first time you run the container, it may take a few minutes to download the Whisper model. Subsequent runs will be faster as the model will be cached in the Docker volume.
- To stop the container, use `Ctrl+C` in the terminal where it's running.
- For convenience, you can use the provided `docker-run.sh` script to start the container: