This project implements an interactive storytelling application powered by the OpenAI GPT-3.5 Turbo & DALL-E models. Users can engage with the application by making choices in a story, and the AI generates responses based on the given prompts.
🪜 Setup Steps:
👉 Create key.txt
file:
- Create a new text file named
key.txt
in the main project structure. - Save your OpenAI GPT-3.5 Turbo API key in this file.
- Ensure that the key is the only content in the file and does not include any extra spaces or characters.
👉 Install Dependencies:
- Open a terminal or command prompt and navigate to the project directory.
- Run the following command to install the required dependencies:
pip install -r requirements.txt
- This will install Flask and OpenAI Python packages.
👉 Run the Flask Application:
- Run the Flask application using the following command:
python run.py
- The application will be accessible at
http://localhost:5001
in your web browser.
👉 Access the Application:
- Open your web browser and go to
http://localhost:5001
. - You should now see the Tales of GPT interactive storytelling application.
👉 Engage with the Story:
- Follow the on-screen instructions to engage with the interactive story.
- Make choices and enjoy the dynamically generated responses by the OpenAI GPT-3.5 Turbo model.
🚀 Setup using Docker:
-
Build the Docker image:
docker build -t taletinkerer:latest .
-
Run the Docker container:
docker run -d -p 5001:5001 taletinkerer
✅ Todo List:
- Wishper Integration
- Fix response waiting time
- Explore huggingface, midjouney integrations