Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

This project is created for educational purposes only. It generates AI-based stories using a pre-trained GPT-2 model.

πŸ“œ Credits & Licenses

  • GPT-2 (gpt2-medium) – Developed by OpenAI, available via HuggingFace, licensed under the MIT License
  • Transformers Library – by Hugging Face, licensed under the Apache 2.0 License
  • Flask – Licensed under the BSD 3-Clause License
  • PyTorch – Developed by Meta AI, licensed under the BSD 3-Clause License

I thank all these open-source libraries and their contributors for making this project possible. Steps to Run the AI Story Generator Locally :

πŸš€ How to Run the AI Story Generator Locally

1. Clone the Repository

git clone https://github.com/TheSlayer7/Story-GEN-AI.git
cd Story-GEN-AI

2. Create and Activate Virtual Environment

python -m venv venv

Activate it:

  • Windows

    venv\Scripts\activate
  • macOS/Linux

    source venv/bin/activate

3. Install Python Dependencies

pip install -r requirements.txt

4. Run the Flask Backend

cd backend
python app.py

5. Set Up and Start the Frontend

Open a new terminal and run:

cd frontend
npm install
npm run dev

6. Open in Browser

http://localhost:5173

About

This project is an interactive web app that uses pre-trained models to generate creative stories from user prompts. Built with a React frontend and a Flask backend, it demonstrates how Generative AI can be used to create engaging narratives. Note: This is a project developed solely for educational purposes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages