Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 1.49 KB

app_instruction.md

File metadata and controls

75 lines (53 loc) · 1.49 KB

OhanashiGPT

Installation

  1. Clone the Repository

    git clone
  2. 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
  3. Install Dependencies

    pip install pip==24.1.2
    pip install -r requirements.txt
  4. 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.

Usage

  1. Run the Flask Application

    cd built/scripts
    python app.py  
  2. Access the Web Interface

  1. Generate Stories
  • Input the required parameters such as age and preferences.
  • Click the "Generate Story" button to generate and narrate the story.