The bot interacts with users based on written inputs into a simple web frontend. Inputs are translated by deepl into a custom target language (as defined in config.py). Answeres are generated by OpenAIs GPT-3. The server runs on flask in debug mode.
To run this project, you will need to add your API key for the following services to the config file:
https://www.deepl.com/en/docs-api/
https://openai.com/api
They both provide a certain amount of free calls, which are more than sufficient for basic local testing.
You might want to adjust the bot to your needs. You can do this by changing the values in the config file. Currently, the following values are potentially subject to change:
target_language = The language you want your bot to speak. Note that he will understand all language inputs as supported by deepl.
empty_input_prompt = What your bot should respond if a user sends an empty message.
Pre-requisits: Your machine runs Python and GIT. In your command prompt:
Check if Python is installed
python --version
# output like this expected: Python 3.10.4Check if GIT is installed
git --version
# output like this expected: git version 2.35.2.windows.1Clone the project
git clone https://github.com/yellelieder/Universal-Language-Chatbot.gitGo to the project directory
cd ChatbotInstall dependencies
pip install -r requirements.txtStart the server
python app.pyThe bot is now available at localhost.