Welcome to the AI Story Generator App! This web application uses a trained LSTM model to generate creative story continuations based on a user-provided starting sentence.
Start the app locally:
streamlit run app.pyThis project uses deep learning with LSTM (Long Short-Term Memory) to build a text generation model trained on story-like text. The trained model continues a sentence by predicting and generating the next words, one at a time.
.
├── app.py # Streamlit application code
├── story_generator.h5 # Trained LSTM model (Keras)
├── tokenizer.pkl # Tokenizer used during training
├── requirements.txt # Python dependencies
└── README.md # You're reading this!
- Generate stories word-by-word from a custom seed sentence
- Adjustable output length (10–100 words)
- Fast and simple web interface via Streamlit
- ✅ Clone the repository or download the files
- ✅ Install dependencies:
pip install -r requirements.txt- ✅ Run the app:
streamlit run app.py- Python 3.7+
- TensorFlow
- Numpy
- Streamlit
(See requirements.txt for full list.)
Input:
The prince entered the forestGenerated:The prince entered the forest and saw a strange creature standing in the mist. It looked at him with glowing eyes and then...
- Built with ❤️ using Keras and Streamlit
- Inspired by creative text generation projects and LSTM-based language models
If you’d like to collaborate or give feedback, feel free to reach out!
