From 143bc769b9d65a5eb594cb69bb5c0fd77df98415 Mon Sep 17 00:00:00 2001 From: Cesura Date: Sat, 17 Apr 2021 00:36:53 +0300 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index bce3d8b..7e9b578 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ $ git clone https://github.com/Cesura/pastey.git && cd pastey && docker-compose Note that this must be modified if you wish to use a local directory for storage, rather than a Docker volume. ### Local +#### With language detection Requirements: * Python 3.8 * AVX-enabled processor (or a Python environment configured to use Anaconda's Tensorflow) @@ -60,6 +61,15 @@ $ git clone https://github.com/Cesura/pastey.git && cd pastey && mkdir ./data $ pip3 install -r requirements.txt $ python3 app.py ``` + +#### Without language detection +If you prefer to not use the language detection feature, use the included **patch_no_tensorflow.sh** script to remove the guesslang requirements: +``` +$ git clone https://github.com/Cesura/pastey.git && cd pastey && mkdir ./data +$ ./patch_no_tensorflow.sh && pip3 install -r requirements.txt +$ python3 app.py +``` + # Configuration Here is a list of the available configuration options: | Environment Variable | config.py Variable | Description | Default Value |