Detoxify server for Xatkit
- Open a new terminal and clone this repository
- Install
python-virtualenv
to create an environment where you will install all necessary packages in isolation.
//Debian, Ubuntu
$ sudo apt-get install python-virtualenv
//CentOS, Fedora
$ sudo yum install python-virtualenv
//Arch
$ sudo pacman -S python-virtualenv
- Navigate to the repository folder and install detoxify in a virtual environment
- Install Flask.
$ pip install Flask
- Run
$ gedit toxic-env/bin/activate
to edit it. At the end of the file you have to define some environment variables used by Flask.
export FLASK_APP="run_detoxify_server.py"
export FLASK_ENV="development"
# Set the port you want to use in the server, or delete the next line if you want to use the default port
export FLASK_RUN_PORT=8000
- Run again
$ source toxic-env/bin/activate
to apply the changes in step 5. - Run the Flask server.
$ flask run
For more information about Detoxify, visit its repository