-
Clone the Repository
git clone
-
Activate the Environment Requirements: Python 3.11.3
For Mac:
pyenv install 3.11.3 pyenv local 3.11.3 python -m venv .venv source .venv/bin/activate
For Windows with
PowerShell
CLI :pyenv local 3.11.3 python -m venv .venv .venv\Scripts\Activate.ps1 python -m pip install --upgrade pip pip install -r requirements.txt
For Windows with
Git-bash
CLI :pyenv local 3.11.3 python -m venv .venv source .venv/Scripts/activate python -m pip install --upgrade pip pip install -r requirements.txt
-
Install Dependencies
pip install pip==24.1.2 pip install -r requirements.txt
-
Download and Prepare Models Ensure you have the model files in the built/model directory. Run text_generation.py to download and train prebuilt models. This might take some time.
python downloads.py
- All models will automatically be saved in the built/model directory.
-
Run the Flask Application
cd built/scripts python app.py
-
Access the Web Interface
- Open your browser and navigate to http://localhost:5000/built/index.html.
- Generate Stories
- Input the required parameters such as age and preferences.
- Click the "Generate Story" button to generate and narrate the story.