https://github.com/devrico003/kinskigpt
KinskiGPT is an AI chatbot using OpenAI's GPT model to simulate interactive conversations with German actor Klaus Kinski. Leveraging the power of natural language processing and the simplicity of Streamlit, it provides dynamic dialogues channelling Kinski's persona. Open-source and aimed at showcasing conversational AI's potential.
https://github.com/devrico003/kinskigpt
ai openai-api
Last synced: about 2 months ago
JSON representation
KinskiGPT is an AI chatbot using OpenAI's GPT model to simulate interactive conversations with German actor Klaus Kinski. Leveraging the power of natural language processing and the simplicity of Streamlit, it provides dynamic dialogues channelling Kinski's persona. Open-source and aimed at showcasing conversational AI's potential.
- Host: GitHub
- URL: https://github.com/devrico003/kinskigpt
- Owner: DevRico003
- Created: 2023-07-11T07:59:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T15:31:28.000Z (over 2 years ago)
- Last Synced: 2025-12-27T09:26:08.601Z (6 months ago)
- Topics: ai, openai-api
- Language: Python
- Homepage:
- Size: 686 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KinskiGPT: A Klaus Kinski Conversational Bot
KinskiGPT is an application utilizing OpenAI's GPT model to simulate a chat with the legendary, passionate, and often controversial figure of German cinema and theater, Klaus Kinski. The chatbot embraces Kinski's famous tantrums and insults, creating a dynamic and authentic conversation experience.
## Project Structure
This Python script is a web application that makes use of the Streamlit library for user interface and the OpenAI API for conversation generation. The OpenAI API key is securely loaded from an environment file.
## Dependencies
The main libraries and packages used in this project are:
- `openai` for interaction with OpenAI's GPT-3 model
- `os` for environment variable management
- `dotenv` for .env file handling
- `streamlit` for web application framework
Please ensure that these packages are installed in your environment before running the application.
## Installation
1. clone repo:
```bash
git clone https://github.com/DevRico003/KinskiGPT.git
```
2. go into the cloned directory:
```bash
cd KinskiGPT
```
3. install requirements:
```bash
pip install -r requirements.txt
```
4. Create a `.env` file in the root directory of the project (inside KinskiGPT folder). Inside this file, set the following variable:
```bash
OPENAI_API_KEY=
```
## Usage
To start the application, run the Python script with Streamlit. From the project's root directory (inside KinskiGPT folder), enter the following command:
```bash
streamlit run main.py
```
This command will start a local server, and you can interact with the KinskiGPT in your web browser.
## Functionality
The main interface of KinskiGPT comprises a chat window and a text input field. After typing a message into the input field and pressing enter, the message is sent to the GPT model, which generates a response in the persona of Klaus Kinski.
The model has a pre-loaded system prompt that introduces the persona of Kinski and encourages the user to engage with the bot in a manner that stimulates the 'Klaus Kinski' responses.
## Examples
### English

### German

## Limitations
As of the current build, the chat history is not saved when the session ends or when the server is stopped. Any ongoing chat history will be lost when the page is refreshed.
## Contribution
This is an open-source project. Feel free to fork and make your own changes or propose improvements by making a pull request.
## Disclaimer
This codebase is intended for educational and demonstration purposes. It is not intended to fully or accurately represent or simulate Klaus Kinski, who was a real person with a nuanced personality and life history. The simulated conversations generated by this program are based on training data used to train the GPT model and may not reflect actual statements or views held by Klaus Kinski.