Generative AI choose-your-own-adventure game. Story progresses as you make decisions. Made using Python Langchain and Streamlit.
- Dynamic Story Progression: As you make choices, the story will evolve in real time, giving you a unique experience each time you play the game.
- Streamlit Interface: The game's interface is built using Streamlit, which provides an intuitive and interactive environment for playing the game.
- NLP-Based Decision Making: The game uses natural language processing (NLP) to understand and process your decisions, making the game more immersive and interactive.
Working with Langchain has been a great experience. The library offers an intuitive and powerful way of generating text using AI models, allowing me to experiment with different styles and structures, resulting in a more variable development experience. In particular I focused on the chaining feature, which I used to feed the initial prompt to the chatbot, and the later connecting its outputs to decision-making chain.
To run the game, follow these steps:
- Clone the repository to your local machine using
git clone https://github.com/r-chong/DreamlandAI.git
. - Navigate to the directory of the game using
cd StorytellerGPT
. - Run script
python app.py
- Install dependencies
- Visit localhost:8501