Skip to content

Universal language chatbot understands the most common languages and answeres in a dedicated target language.

Notifications You must be signed in to change notification settings

yellelieder/Universal-Language-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Language Chatbot

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.

API Keys

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.

Configuration

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.

Run Locally

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.4

Check if GIT is installed

  git --version
  # output like this expected: git version 2.35.2.windows.1

Clone the project

  git clone https://github.com/yellelieder/Universal-Language-Chatbot.git

Go to the project directory

  cd Chatbot

Install dependencies

  pip install -r requirements.txt

Start the server

  python app.py

The bot is now available at localhost.

About

Universal language chatbot understands the most common languages and answeres in a dedicated target language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published