johnhenry / story-teller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Story Teller

Story teller allows you to piece together a story using AI.

Visit pages directly /{page_number} or visit / to get a random page.

Pages that do not exist will be automagically generated.

Upone generating the last page, you'll be redirected to 0.html where all pages have been concatinated into a single page.

Requirements

  • git -- for cloning the application
  • conda -- for running the application
  • groq account -- for using the Groq API

Setup

Clone this repository locally and navigate to it

git clone  git@github.com:johnhenry/story-teller.git
cd story-teller

Create environment

conda env create -f environment.yml

Activate environment

conda activate story-teller

Install dependencies

pip install -r requirements.txt

Set environment variables

export GROQ_API_KEY=<get from https://console.groq.com/keys>

Run

python main.py

Reset pages

rm page/*.html

Vist

Vist http://localhost:8080

About


Languages

Language:Python 85.9%Language:HTML 14.1%