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!
